/*!
Theme Name: Spicy Dog Media
Theme URI: https://spicydogmedia.ie/
Author: Lum Lamaxhema
Author URI: https://lumlamax.com/
Description: A custom theme for Spicy Dog Media
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: spicy-dog-media
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

@font-face {
  font-family: "Gotham";
  src: url("fonts/Gotham.woff2") format("woff2");
  font-weight: normal;
  font-style: 600;
}

@font-face {
  font-family: "Gotham Regular";
  src: url("fonts/Gotham-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Gotham", sans-serif !important;
}

p {
  margin: 0 !important;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Gotham Regular", sans-serif !important;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

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

html {
  box-sizing: border-box;
}

body,
button,
input,
select,
optgroup,
textarea {
  color: #272624;
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
}

p {
  margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #f9f2f2;
  text-decoration: none;
}

big {
  font-size: 125%;
}

body {
  background: #f9f2f2;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li>ul,
li>ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

embed,
iframe,
object {
  max-width: 100%;
}

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

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: #272624;
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
  display: block;
  width: 100%;
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left;
  position: absolute;
  top: 100%;
  left: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul {
  left: -999em;
  top: 0;
}

.main-navigation ul ul li:hover>ul,
.main-navigation ul ul li.focus>ul {
  display: block;
  left: auto;
}

.main-navigation ul ul a {
  width: 200px;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li.focus>ul {
  left: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
  display: block;
}

@media screen and (min-width: 37.5em) {
  .menu-toggle {
    display: none;
  }

  .main-navigation ul {
    display: flex;
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.post {
  margin: 0 0 1.5em;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

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

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

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/* Header behavior */

.logo {
  height: 50px;
  width: auto;
  max-height: 50px;
  image-rendering: -webkit-optimize-contrast;
  position: relative;
  z-index: 99999;
}

/* Burger button */
.menu-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.burger {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.site-header.scrolled-up .burger {
  background-color: white;
}

.menu-toggle.open .burger:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .burger:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .burger:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay menu */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #272624;
  color: white;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.overlay-menu.open {
  display: flex;
}

.overlay-nav li {
  margin-bottom: 20px;
}

.overlay-nav a {
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.overlay-nav a:hover {
  color: #ccc;
}

.overlay-social a {
  margin: 0 10px;
  font-size: 1.5rem;
  color: white;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.site-footer {
  background-color: #f9f2f2;
  position: relative;
  z-index: 2;
}

.footer-border {
  border-top: 1px solid black;
  margin-bottom: 1rem;
}

.footer-address {
  font-size: 14px;
  color: #272624;
}

.footer-logo {
  max-width: 200px;
}

.footer-privacy {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

.footer-privacy:hover {
  text-decoration: none;
  color: gray;
}

.footer-privacy-underline {
  width: 50px;
  height: 2px;
  background-color: black;
  margin-top: 5px;
}

.socials-footer a {
  color: #272624;
  width: 25px;
  margin-left: 5px;
  display: inline-block;
  font-size: 25px;
}

.navbar-nav {
  gap: 60px;
}

/* Base Button Style */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0 !important;
  border: 2px solid;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.3s ease, color 0.3s ease,
    background-color 0.3s ease, border-color 0.3s ease;
}

/* Black Button on Light BG */
.btn-black {
  color: #272624 !important;
  border-color: #272624 !important;
}

.btn-black:hover {
  background-color: #272624 !important;
  color: #f9f2f2 !important;
  border-color: #272624 !important;
}

/* White Button on Dark BG */
.btn-white {
  background-color: #f9f2f2 !important;
  color: #272624 !important;
  border-color: #f9f2f2 !important;
}

.btn-white:hover {
  background-color: #272624 !important;
  color: #f9f2f2 !important;
  border-color: #f9f2f2 !important;
}

.btn:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn i {
  transition: transform 0.3s ease !important;
}

.btn:hover i {
  transform: translateX(4px) !important;
}

/* ---------------------------------------------
   HERO VIDEO BANNER
--------------------------------------------- */

.hero-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.hero-section {
  height: 100vh;
  position: relative;
  padding-top: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-overlay .word {
  display: inline-block;
  margin-right: 0.25em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1.1rem;
  }
}

/* ---------------------------------------------
	 GLOBAL SECTION WRAPPER
  --------------------------------------------- */
.full-width-section {
  padding: 50px 0;
}

/* ---------------------------------------------
	 ABOUT / TEXT-ONLY BLOCKS
  --------------------------------------------- */

.about-hero-bold {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.about-hero-bold-title {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.about-hero-bold-video {
  top: -50%;
  right: 10%;
  width: 100%;
  max-width: 50%;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
}

.about-hero-bold-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.about-hero-wrapper {
  padding: 0 100px;
}

.logo-swiper {
  height: 90px;
}

.logo-swiper .swiper-wrapper {
  align-items: center;
}

.logo-swiper .swiper-slide {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ---------------------------------------------
	 RECENT WORK (Hover Video)
  --------------------------------------------- */
.recent-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recent-work-box {
  flex: 0 0 32%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: #272624;
  text-decoration: none;
  color: white;
  cursor: pointer;
}

.recent-work-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.media-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.recent-work-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.video-hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.video-hover-bg iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-work-box:not(.video-click):hover .video-hover-bg {
  opacity: 1;
}

.recent-work-box:not(.video-click):hover .recent-work-thumbnail {
  opacity: 0;
}

.overlay-content {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.overlay-content h3 {
  font-size: 1.4rem;
  margin: 0 0 5px;
}

.overlay-content a {
  color: #f9f2f2;
}

.client-logo {
  width: 100px;
}

.client-logo-small {
  width: auto;
  height: 50px;
}

/* AFTER — only for non click-to-play cards */
.recent-work-box:not(.video-click):hover .video-hover-bg {
  opacity: 1;
}

.recent-work-box:not(.video-click):hover .recent-work-thumbnail {
  opacity: 0;
}

/* ---------------------------------------------
	 FEATURED WORK (Hover Video)
  --------------------------------------------- */
.feature-section {
  padding: 100px 0;
  width: 100%;
}

.bg-black {
  background-color: #272624 !important;
  color: #f9f2f2 !important;
}

.bg-white {
  background-color: #f9f2f2 !important;
  color: #272624 !important;
}

.bg-black h4,
.bg-black p,
.bg-black a {
  color: #f9f2f2;
}

.bg-white h4,
.bg-white p,
.bg-white a {
  color: #272624 !important;
}

.video-hover-block {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 2;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.vimeo-hover-video {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  border: none;
}


/* FEATURED: click-to-play */
.recent-work-box.video-click .media-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.recent-work-box.video-click .recent-work-thumbnail {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  transition: opacity .2s ease;
  pointer-events: auto;
  /* so the button is clickable before play */
}

.recent-work-box.video-click .play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 3;
}

.recent-work-box.video-click .play-btn .play-icon i {
  font-size: 4rem;
  color: #fff;
  opacity: .95;
  transition: transform .15s ease, opacity .15s ease;
}

.recent-work-box.video-click .play-btn:hover .play-icon i {
  transform: scale(1.04);
  opacity: 1;
}

.recent-work-box.video-click .video-click-target {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* raised to 5 while playing */
}

.recent-work-box.video-click .video-click-target iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* once playing: hide UI and ensure the iframe is on top */
.recent-work-box.video-click.playing .recent-work-thumbnail {
  opacity: 0 !important;
  pointer-events: none !important;
}

.recent-work-box.video-click.playing .play-btn {
  display: none;
}

.recent-work-box.video-click.playing .video-click-target {
  z-index: 5;
}

/* kill any old hover-video layer on click tiles if present */
.recent-work-box.video-click .video-hover-bg {
  display: none !important;
}


/* ---------------------------------------------
	 ANIMATIONS / SCROLLTRIGGER HOOKS
  --------------------------------------------- */
.animate-fadeup {
  opacity: 0;
  transform: translateY(60px);
}

section {
  will-change: transform, opacity;
}

.hover-zoom {
  transition: transform 0.6s ease;
}

.hover-zoom:hover {
  transform: scale(1.05);
}

/* ---------------------------------------------
	 SERVICE PAGE
  --------------------------------------------- */

.hero-banner .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-banner .hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-banner .hero-content {
  position: relative;
  z-index: 3;
  opacity: 1;
}

.hero-banner .hero-content h1,
.hero-banner .hero-content p,
.hero-banner .hero-content a {
  color: #f9f2f2;
}

.service-box {
  aspect-ratio: 16/9;
  background: #272624;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: opacity 0.3s;
}

.service-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.service-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}

.service-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 3;
  transition: opacity 0.3s;
}

.service-overlay h3,
.service-overlay p {
  color: #f9f2f2 !important;
  margin: 0 0 5px;
}

.learn-more-text {
  display: inline-block;
  color: #f9f2f2;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: underline;
  margin-top: 8px;
}

.service-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: #f9f2f2;
  opacity: 0.9;
  z-index: 4;
}

.service-box:hover .service-video {
  opacity: 1;
}

.service-box:hover .service-thumb {
  opacity: 0;
}

.service-box:hover .service-overlay h3,
.service-box:hover .service-overlay p,
.service-box:hover .service-overlay .btn {
  opacity: 0;
}

/* ---------------------------------------------
	 WORK PAGE
  --------------------------------------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* ---------------------------------------------
	 SINGLE WORK PAGE
  --------------------------------------------- */

.project-header h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
}

.project-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.ratio {
  aspect-ratio: 16 / 9;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.play-icon i {
  font-size: 4rem;
  color: white;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.recent-work-box:hover .play-icon i {
  opacity: 0;
  /* fade out when video starts */
}

.about-text {
  line-height: 1.8;
  color: #272624;
  position: relative;
  z-index: 2;
}

.client-quote blockquote {
  font-size: 1.25rem;
  color: #333;
  font-style: italic;
}

.rich-text h2,
.rich-text p {
  margin-bottom: 1rem;
}

.site-header {
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled-up {
  background-color: #272624;
  position: fixed;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled-down {
  transform: translateY(-100%);
}

.blog-archive a {
  color: inherit;
  text-decoration: none;
}

.blog-archive a:hover {
  color: #d9376e;
}

.thumbnail-wrapper {
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 ratio */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.card:hover .thumbnail-wrapper {
  transform: scale(1.03);
}

.post-content p {
  margin-bottom: 15px !important;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0 !important;
}

.card.h-100 {
  display: flex;
  flex-direction: column;
}

.card-body {
  flex-grow: 1;
  padding: 1rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.recent-work-box {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.recent-work-box:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.overlay-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.recent-work-box:hover .overlay-content {
  opacity: 1;
  transform: translateY(0);
}

.recent-work-thumbnail {
  transition: filter 0.3s ease;
}

.recent-work-box:hover .recent-work-thumbnail {
  filter: blur(3px);
}

.wpcf7-form {
  text-align: center;
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
}

.wpcf7-form input[type="submit"] {
  background-color: #272624;
  color: #f9f2f2;
  border: 2px solid #272624;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 12px 25px;
  text-transform: uppercase;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #f9f2f2;
  color: #272624;
  border-color: #272624;
}

.kit-page section {
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
}

.kit-page h2 {
  font-size: 1.6rem;
}

.kit-page ul {
  padding-left: 1rem;
}

.kit-page img.object-fit-cover {
  object-fit: cover;
  max-height: 400px;
}

/* ===== Backplate host ===== */
#feature-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* content paints above this */
  background: #f9f2f2;
  /* base */
  pointer-events: none;
  will-change: background-color;
}

#feature-bg {
  display: none;
}

.backplate-on #feature-bg {
  display: block;
}

/* Two noise layers (+ scanlines in ::before). Off by default; toggled by body.grain-on */
#feature-bg::before,
#feature-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  /* base off; JS/ScrollTrigger toggles body.grain-on */
  will-change: opacity, transform, background-position, filter;
  transform: translate3d(0, 0, 0);
}

/* LAYER A: fine, speckly grain (no scanlines) */
#feature-bg::before {
  /* high-frequency turbulence + hard contrast to get dots */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='11'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 3 -1.5'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 80px 80px;
  /* smaller tile => finer grain */
  background-blend-mode: overlay;

  transform:
    translate(var(--g1x, 0px), var(--g1y, 0px)) rotate(var(--g1r, 0deg)) scale(var(--g1s, 1));
  background-position: var(--g1bx, 0px) var(--g1by, 0px);
  opacity: var(--g1o, 0);
  filter: contrast(130%) saturate(105%);
}


/* LAYER B: coarse grain */
#feature-bg::after {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMzAnIGhlaWdodD0nMjMwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC41NScgbnVtT2N0YXZlcz0nMycgc2VlZD0nNycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCMnK24rJyknLz48L3N2Zz4=");
  background-repeat: repeat;
  background-size: 230px 230px;

  transform:
    translate(var(--g2x, 0px), var(--g2y, 0px)) rotate(var(--g2r, 0deg)) scale(var(--g2s, 1));
  background-position: var(--g2bx, 0px) var(--g2by, 0px);
  opacity: var(--g2o, 0);
  filter: contrast(120%);
}

/* Grain strength when Featured sequence active */
body.grain-on #feature-bg::before {
  --g1o: 0.82;
}

/* fine layer */
body.grain-on #feature-bg::after {
  --g2o: 0.68;
}

/* coarse layer */

/* Better interaction with accent colors */
@supports (mix-blend-mode: overlay) {

  #feature-bg::before,
  #feature-bg::after {
    mix-blend-mode: overlay;
  }
}

/* Reduced motion: keep static look */
@media (prefers-reduced-motion: reduce) {

  #feature-bg::before,
  #feature-bg::after {
    transform: none !important;
    background-position: 0 0 !important;
    filter: none !important;
  }
}

/* Ensure featured sections are transparent so backplate/grain shows */
.hero-section,
.full-width-section,
.feature-section {
  position: relative;
  z-index: 1;
}

.feature-section {
  background: transparent !important;
}


.feature-media-col,
.feature-copy-col {
  will-change: transform;
}

.keep-white {
  background: #f9f2f2 !important;
}


/* Featured: taller & comfy on desktop */
.feature-tall {
  padding: 10vh 0;
}

@media (min-width: 992px) {
  .feature-tall {
    min-height: 90vh;
    display: flex;
    align-items: center;
  }
}

.feature-parallax,
.feature-copy {
  will-change: transform;
}

/* Text contrast helpers */
.text-on-dark {
  color: #f9f2f2 !important;
}

.text-on-light {
  color: #272624 !important;
}

/* Kill any clip/mask/reveal on featured thumbnails */
.feature-card .feature-thumb {
  transform: none;
  transition: none;
  will-change: auto;
}


/* Make play icon pop a bit more on custom colors */
.feature-card .play-icon i {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-card .feature-thumb {
    transition: none !important;
    transform: none !important;
  }
}


/* Responsive recent work grid */
@media (max-width: 767.98px) {
  .client-logo {
    width: 70px;
  }

  .privacy-link{
    text-align: center;
  }

  .recent-work-grid {
    grid-template-columns: 1fr;
  }

  .overlay-content {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    padding: 1rem;
    opacity: 1 !important;
    transform: translateY(0) !important;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0));
  }

  .overlay-content h3,
  .overlay-content p {
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

  .about-hero-wrapper {
    padding: 0 .5rem;
  }

  .about-hero-bold-video {
    top: -35%;
    max-width: 80%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .recent-work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .recent-work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}