/* simple.css — kusio.net
   Single stylesheet. Heuvel Grotesk, purple/orange color scheme restored.
   Third-party: glightbox.min.css and splide.min.css load separately.
   =========================================================================== */

/* ===== FONTS ===== */
@font-face {
    font-family: 'Heuvel Grotesk';
    src: url('../fonts/HeuvelGrotesk-Regular.woff2') format('woff2'),
         url('../fonts/HeuvelGrotesk-Regular.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Heuvel Grotesk';
    src: url('../fonts/HeuvelGrotesk-SemiBold.woff2') format('woff2'),
         url('../fonts/HeuvelGrotesk-SemiBold.woff') format('woff');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Heuvel Grotesk';
    src: url('../fonts/HeuvelGrotesk-Bold.woff2') format('woff2'),
         url('../fonts/HeuvelGrotesk-Bold.woff') format('woff');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Heuvel Grotesk';
    src: url('../fonts/HeuvelGrotesk-Black.woff2') format('woff2'),
         url('../fonts/HeuvelGrotesk-Black.woff') format('woff');
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
    /* Colors */
  --purple-dark:  #4A0072;
  --purple:       #8000C2;
  --purple-light: #E8E6FF;
  --purple-mid:   #CBC3E3;
  --orange-dark:  #CC3E00;
  --green:        #8EA604;
  --green-dark:   #778B04;
  --green-light:  #f2f9c7;
  --off-white:    #FAF9F6;
  --white:        #fff;
  --off-grey:     #D0D4D9;
  --off-black: #444444;
  --white-trans: rgba(255, 255, 255, 0.5);

  /* Splatter-effect colors */
  --purple-xlight: #F5F4FF;
  --purple-grey:   #8d739a;
  --orange:        #FF4E00;
  --orange-light:  #ffdfc7;

  /* Backgrounds */
  --background-hero: radial-gradient(circle at 50% 50%, #d0d0d0 0%, #d0d0d0 25%, #909090 100%);
  --bg-img: url("../../images/texture.png");
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Heuvel Grotesk', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--off-black);
  background: var(--bg-img) repeat 0 0;
  background-color: var(--off-white);
  background-blend-mode: multiply;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700; line-height: 1.1; margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.2;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #111;
  text-transform: uppercase;
}

/* h3 — dark purple bar, left-aligned, no rounded corners */
h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700; line-height: 1.3;
  display: block; width: 100%;
  background: var(--purple-dark);
  color: var(--off-white);
  padding: 0.5rem 1rem;
  margin: .5rem 0;
}

/* h3 in dark sections: flip to light purple bg */
.wrapOuter.style3 h3,
.wrapOuter.style4 h3 {
  background: var(--purple-light);
  color: var(--purple-dark);
}

/* h3 inside case-study tiles: no box treatment */
#home .wrapInner h3 {
  background: none;
  color: #111;
  padding: 0;
  width: auto;
  margin: 0.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* h3.subhead — plain divider heading, no purple bar */
h3.subhead {
  background: none;
  color: inherit;
  padding: 0 0 0.3rem;
  margin: 1.75rem 0 0.75rem;
  width: auto;
  border-bottom: 1px solid var(--off-grey);
}
.wrapOuter.style4 h3.subhead {
  color: var(--off-white);
  border-bottom-color: var(--purple-mid);
  background-color: transparent;
}
.wrapOuter.style3 h3.subhead {
  color: var(--off-white);
  border-bottom-color: rgba(255,255,255,0.3);
  background-color: transparent;
}

.style4 .wrapInner{
  color: var(--off-black);
}

h4 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 0.5rem; }

h5 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--purple-dark);
  margin: 1.5rem 0 0.5rem;
  border-bottom: 1px solid var(--purple-dark);
  padding-bottom: 0.25rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem 1.5rem; padding: 0; list-style-type: none;}
li { margin-bottom: 0.35rem; }
li:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

/* Links */
a { color: var(--purple-dark); }
a:hover { color: var(--purple); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--purple-dark); outline-offset: 2px; }

blockquote {
  border-left: 3px solid var(--purple-mid);
  padding-left: 1rem;
  margin: 1rem 0;
}
blockquote p { margin: 0 0 0.5rem; }
blockquote footer { font-size: 0.85rem; color: #555; }

/* Dark section blockquote */
.wrapOuter.style3 blockquote { border-left: none; }
.wrapOuter.style3 blockquote footer { color: rgba(255,255,255,0.75); }

/* Custom block elements */
bigQuote, medQuote, bighonk { display: block; }

bigQuote {
  font-size: 1.15rem; font-style: italic; line-height: 1.45;
  margin: 0.75rem 0 1.25rem;
  color: var(--purple-dark);
}
bigQuote.light { color: var(--off-white); }

medQuote {
  font-size: 1.05rem; font-style: italic;
  margin: 0.5rem 0 0.75rem;
  color: var(--purple-dark);
}

bighonk {
  font-size: 3rem; font-weight: 700; line-height: 1;
  margin: 0.5rem 0; color: var(--purple-light);
}

/* ===== LAYOUT ===== */
.wrapOuter { padding: 2rem 1rem; }
.wrapInner {
  max-width: 900px;
  margin:0 auto;
  background-color: var(--white-trans);
  padding: 20px;
  border: 1px solid #8fbcb9;
  border-radius: 50px;
}
.style3 .wrapInner{
  background-color: transparent;
  border: none;
}

/* Gallery gets wider content column */
#gallery .wrapInner { max-width: 1200px; }

/* ===== SECTION BACKGROUNDS ===== */

/* style2 — light purple gradient, full-width on wrapOuter */
.wrapOuter.style2 {
  background: radial-gradient(circle at 50% 50%, var(--off-white) 0%, var(--off-white) 25%, #D5CDED 100%);
  border-top: 2px solid var(--purple-mid);
  border-bottom: 2px solid var(--purple-mid);
}

/* style2 on wrapInner (subsections): narrower bg */
section.wrapInner.style2,
.wrapInner.style2 {
  background: radial-gradient(circle at 50% 50%, var(--off-white) 0%, var(--off-white) 25%, #D5CDED 100%);
  border: 2px solid var(--purple-mid);
  padding: 2rem;
}
/* Don't double-apply inside a style2 wrapOuter */
.wrapOuter.style2 .wrapInner.style2 { background: none; border: none; }

/* style3 — dark orange (recommendations) */
.wrapOuter.style3 { background: var(--orange-dark); color: var(--off-white); position: relative; }
.wrapOuter.style3 h2 { color: var(--off-white); border-bottom-color: rgba(255,255,255,0.3); }
.wrapOuter.style3 .eyebrow { color: var(--off-white); }
.wrapOuter.style3 .postRefLink a { color: #ffdfc7; }

/* style4 — dark purple (results sections) */
.wrapOuter.style4 { background: var(--purple-dark); color: var(--off-white); }
.wrapOuter.style4 h2 { color: var(--off-white); border-bottom-color: var(--purple-mid); }
.wrapOuter.style4 h4 { color: var(--off-white); }
.wrapOuter.style4 .eyebrow { color: var(--purple-light); }
.wrapOuter.style4 bigQuote { color: var(--purple-light); }
.wrapOuter.style4 ul.deeds { border-left-color: var(--purple-mid); }
.wrapOuter.style4 .subhead { color: var(--off-white); }
.wrapOuter.style4 p { color: var(--off-white); }
.wrapOuter.style4 li { color: var(--off-white); }
.wrapOuter.style4 a { color: var(--purple-light); }
.wrapOuter.style4 a:hover { color: var(--white); }
.wrapOuter.style4 strong { color: var(--off-white); }


.wrapOuter.style4 .wrapInner h2 { color: var(--purple-dark);}
.wrapOuter.style4 .wrapInner h4 { color: var(--off-black); }
.wrapOuter.style4 .wrapInner .eyebrow { color: var(--purple-dark); }
.wrapOuter.style4 .wrapInner bigQuote { color: var(--purple-dark); }
.wrapOuter.style4 .wrapInner .subhead { color: var(--purple-dark); }
.wrapOuter.style4 .wrapInner p { color: var(--off-black); }
.wrapOuter.style4 .wrapInner li { color: var(--off-black); }
.wrapOuter.style4 .wrapInner a { color: var(--purple-dark); }
.wrapOuter.style4 .wrapInner a:hover { color:var(--purple); }
.wrapOuter.style4 .wrapInner strong { color: var(--off-black); }
.wrapOuter.style4 .wrapInner  { border: 3px solid var(--purple-dark); }


.wrapOuter.style4 .wrapInner .box-item.dark h4 { color: var(--off-white); }
.wrapOuter.style4 .wrapInner .box-item.dark p { color: var(--off-white); }
.wrapOuter.style4 .wrapInner .box-item.dark strong { color: var(--off-white); }

/* ===== EYEBROW ===== */
.eyebrow {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--purple); margin-bottom: 0.4rem;
}

/* ===== SPECIAL CONTENT ===== */
.special {
  border-left: 2px solid var(--purple-mid);
  padding-left: 1rem; font-style: italic;
  color: var(--purple-dark); margin: 1rem 0;
}

.subhead { color: #111; }
.center-narrow { text-align: center; max-width: 600px; margin: 1.5rem auto; }
.centered-list-wrapper { max-width: 640px; margin: 1.5rem auto; text-align: left; }
section > .centered-list-wrapper {
  /* border-left: 3px solid var(--purple-mid); */
  padding-left: 1rem;
}

.twothirds-third { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1rem 0; }
.twothirds { flex: 2 1 380px; }
.third { flex: 1 1 200px; }

/* ===== HERO (index) ===== */
#home {
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 4rem; border-bottom: 2px solid #111; position: relative;
  background: radial-gradient(circle at 50% 50%, #d0d0d0 0%, #d0d0d0 25%, #8d739a 100%), var(--bg-img);
  background-blend-mode: darken;
}
/* keep the hero content above its splatter field */
#home > .wrapInner,
#home > h2#casestudies,
#home > .casestudies {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 700; line-height: 1; margin-bottom: 0.5rem;
}

.hero-subtitle { font-size: 1.05rem; max-width: 560px; color: #333; margin: 0; }

/* Case study tiles */
h2#casestudies {
  max-width: 900px; width: 100%;
  margin: 3rem auto 0.75rem;
  padding-left: 1.25rem; padding-right: 1.25rem;
}

.casestudies {
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 900px; width: 100%;
  margin: 0 auto; padding: 0 1.25rem 3rem;
}

.casestudy {
  background-size: cover; background-position: center;
  padding: 1.5rem 1.25rem; position: relative;
  min-height: 140px; display: flex; align-items: flex-end;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
  border-radius: 50px;
  text-align: center;
  color: var(--white); 
}
.casestudy:hover{
  transform: scale(1.05);
}

.casestudy::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 100%);
  z-index: 0;
}
.casestudy h3 {
  position: relative; z-index: 1;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700; background: none; padding: 0;
  margin: 0; width: auto;
}
.casestudy:hover h3 {
  color: var(--purple-light);
  text-decoration: underline; 
}
/* .casestudy h3 { color: var(--white); text-decoration: none; } */
/* .casestudy h3 a:hover { color: var(--purple-light); text-decoration: underline; } */

.cs1 { background-image: url('../../images/cs1/sample-home-page.jpg'); }
.cs2 { background-image: url('../../images/cs2/intro-laptop.jpg'); }
.cs3 { background-image: url('../../images/cs3/nk3-collage.jpg'); }



@media (min-width: 640px) {
  .casestudies { flex-direction: row; }
  .casestudy { flex: 1; min-height: 220px; }
}

/* ===== NAVIGATION ===== */

/* Hamburger — purple */
.openBtn {
  position: fixed; top: 1rem; right: 1rem; z-index: 200;
  background: var(--purple); border: 2px solid var(--purple);
  width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer; padding: 0;
}
.openBtn span { display: block; width: 20px; height: 2px; background: var(--white); }

/* Mobile nav drawer — dark purple */
#bignav {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: var(--purple-dark); border-left: none;
  z-index: 250; overflow-y: auto;
  transition: right 0.25s ease; padding: 1rem 0;
}

.closebtn {
  display: block; width: 100%; background: none; border: none;
  font-size: 1.25rem; cursor: pointer; padding: 0.5rem 1rem;
  text-align: right; font-family: inherit; color: var(--purple-light);
}

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

nav > ul > li > a,
nav > ul > li > .main-link {
  display: block; padding: 0.6rem 1.5rem;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; color: var(--purple-light);
}
nav > ul > li > a:hover,
nav > ul > li > .main-link:hover { color: var(--white); text-decoration: none; }

nav .dropdown { list-style: none; margin: 0; padding: 0 0 0 1.5rem; }
nav .dropdown li { padding: 0.2rem 0; }
nav .dropdown > li > a {
  display: block; padding: 0.25rem 1rem;
  font-size: 0.85rem; color: var(--purple-mid); text-decoration: none;
}
nav .dropdown > li > a:hover { color: var(--purple-light); }

nav .subsections { list-style: none; margin: 0; padding: 0 0 0 1rem; }
nav .subsections li { padding: 0.15rem 0; }
nav .subsections a { font-size: 0.75rem; color: var(--purple-mid); text-decoration: none; }
nav .subsections a:hover { color: var(--purple-light); }

nav ul.subsection-nav { display: none; }

#navCover {
  visibility: hidden; opacity: 0;
  transition: opacity 250ms ease-in, visibility 0ms ease-in 250ms;
  position: fixed; inset: 0;
  background: rgba(74,0,114,0.5);
  z-index: 225;
}
#navCover.active {
  visibility: visible; opacity: 1;
  transition: opacity 250ms ease-in, visibility 0ms ease-in 0ms;
}

/* ===== DESKTOP NAV ===== */
@media (min-width: 768px) {
  .openBtn { display: none; }

  #bignav {
    position: sticky; top: 0; right: auto; width: 100%; height: auto;
    background: var(--white); border-left: none;
    border-bottom: 2px solid var(--purple-dark);
    overflow: visible; padding: 0; transition: none; z-index: 100;
  }

  .closebtn { display: none; }

  nav ul.main-nav { display: flex; justify-content: center; flex-wrap: wrap; padding: 0; }
  nav > ul > li,
  nav ul.main-nav > li { position: relative; display: inline-block; margin-bottom: 0;}

  nav > ul > li > a,
  nav > ul > li > .main-link { padding: 0.75rem; color: #111; }
  nav > ul > li > a:hover,
  nav > ul > li > .main-link:hover { color: var(--purple); text-decoration: none; }

  /* Desktop dropdown */
  nav .has-dropdown .dropdown {
    opacity: 0; visibility: hidden;
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
    background: var(--white);
    border: 2px solid var(--purple-dark); border-top: none;
    padding: 0.5rem 0; min-width: 180px; z-index: 200; text-align: center;
  }
  nav .has-dropdown:hover .dropdown {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s, transform 0.2s;
  }
  nav .has-dropdown .dropdown li { display: block; padding: 0.3rem 1rem; }
  nav .has-dropdown .dropdown li.current-page { font-weight: 700; }
  nav .has-dropdown .dropdown > li > a {
    padding: 0; text-align: center; letter-spacing: 0; text-transform: none;
    font-size: 0.85rem; line-height: 1.3; color: var(--purple-dark); text-decoration: underline;
  }
  nav .has-dropdown .dropdown > li.current-page > a { text-decoration: none; }
  nav .has-dropdown .dropdown > li > a:hover { color: var(--purple); text-decoration: none; }
  nav .has-dropdown .dropdown .subsections { display: none; }

  /* Subsection nav */
  nav ul.subsection-nav {
    display: flex; justify-content: center; flex-wrap: wrap;
    border-top: 2px solid var(--purple-dark); padding: 0;
  }
  nav ul.subsection-nav li { padding: 0.1rem 0.5rem 0.3rem; }
  nav ul.subsection-nav .label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: #888; display: flex; align-items: center;
  }
  /* Default: underlined, purple */
  nav ul.subsection-nav a {
    font-size: 0.7rem; font-weight: 400; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--purple); text-decoration: underline;
  }
  nav ul.subsection-nav a:hover { color: var(--purple-dark); text-decoration: none; }
  /* Active (scroll-spy): no underline, darker */
  nav ul.subsection-nav a.active {
    color: var(--purple-dark); text-decoration: none; font-weight: 700;
  }
}

/* ===== CASE STUDY H1 ===== */
h1.page2 {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700; padding: 1rem 1.25rem; margin: 0;
  background: var(--purple-dark); color: var(--off-white);
}
h1.page2 span { color: var(--purple-light); }

/* ===== BOX CONTAINERS ===== */
.box-container { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.25rem 0; }
.box-item { flex: 1 1 260px; padding: 1rem; background: var(--white); border: 2px solid var(--off-grey); }
.box-item.side-by-side { flex: 1 1 40%; }
.box-item.flex-height { flex: 1 1 200px; }
.box-container.triplets .box-item { flex: 1 1 180px; }
.box-container ul {margin: 1.5rem 0 1rem 1.5rem;
  border-left: 4px solid var(--purple-dark);
  padding-left: 0.75rem;
}

.box-content { padding: 0.5rem 0; }
.box-title { display: block; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.35rem; }
.box-subtitle { display: block; color: #555; font-size: 0.9rem; }
.box-title-sml {
  display: block; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--purple-dark);
}

.title-ccw .box-content .box-title, .title-cw .box-content .box-title{ font-size: 2.5rem;}
.title-ccw .box-content .box-subtitle, .title-cw .box-content .box-subtitle{ font-size: 1.5rem; line-height: 1.15;}

.box-dark{
  background-color: var(--purple-dark);
}

.box-mid{
  background-color: var(--purple-mid);
}

/* Label boxes (Creativity / Technology / Leadership) */
.has-canvas {
  display: flex; align-items: center; justify-content: center;
  min-height: 80px; text-align: center;
  background: var(--off-grey); border: 1px solid var(--purple-mid);
  position: relative; overflow: hidden;
}
.has-canvas > *:not(.splatter-field) { position: relative; z-index: 1; }

#anim-head { display: none; }

/* ===== ALTERNATING TWO-COLUMN GRID ===== */
.alt-box-grid { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.25rem 0; }
.pair { display: flex; flex-direction: column; gap: 0; }
.pair > .box-item { flex: 1 1 auto; }

@media (min-width: 768px) {
  .pair { flex-direction: row; gap: 1.25rem;}
  .pair.reverse { flex-direction: row-reverse; }
  .pair > .box-item { flex: 1 1 0; width: 50%; min-width: 0; }
}

/* ===== RESULTS STAT BOXES ===== */
#result-awareness, #result-category, #result-purchase { text-align: center; padding: 1.5rem 1rem; background: var(--purple);}

/* ===== DEEDS LIST ===== */
ul.deeds { border-left: 6px solid var(--purple-dark); padding-left: 0.75rem; }
ul.deeds li { margin-bottom: 0.5rem; }

/* ===== GALLERY ===== */
.gallery-section { margin: 1.5rem 0; }
p.subhead { font-size: 1rem; color: #555; margin-bottom: 1rem; }

.gallery-container {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding: 20px 0; justify-content: center;
}

.gallery-container a.glightbox,
.gallery-container > a {
  width: 280px; position: relative; display: block;
  overflow: hidden; border: 1px solid var(--off-grey);
  transition: transform 0.3s ease; flex-shrink: 0;
}
.gallery-container a.glightbox:hover,
.gallery-container > a:hover { transform: translateY(-5px); }

.gallery-container.screens a.glightbox,
.gallery-container.screens .gallery-item { flex: 1 1 240px; width: auto; }

.gallery-container img { width: 100%; height: 220px; object-fit: cover; object-position: top; display: block; }
.gallery-container img.middle { object-position: center; }
.gallery-container img.left { object-position: left; }

.gallery-container h5 { width: 100%; flex: 0 0 100%; color: var(--purple-dark); border-bottom-color: var(--purple-dark); }

.image-icon-overlay {
  position: absolute; bottom: 6px; right: 6px; width: 26px; height: 26px;
  background: rgba(255,255,255,0.85); border: 1px solid var(--off-grey);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transition: opacity 0.15s;
}
.gallery-container a:hover .image-icon-overlay,
.single-image-wrapper a:hover .image-icon-overlay,
.image-holder a:hover .image-icon-overlay,
.demo-image-link:hover .image-icon-overlay { opacity: 1; }
.image-icon-overlay svg { width: 14px; height: 14px; stroke: #111; }

@media (max-width: 480px) {
  .gallery-container a.glightbox, .gallery-container > a { width: 100%; }
  .gallery-container img { height: 200px; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .gallery-container a.glightbox, .gallery-container > a { width: calc(50% - 10px); }
  .gallery-container img { height: 180px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .gallery-container a.glightbox, .gallery-container > a { width: calc(33.333% - 14px); }
}

/* ===== STANDALONE IMAGES ===== */
.single-image-wrapper { margin: 1.5rem 0; position: relative; display: inline-block; width: 100%; }
.single-image-wrapper img { border: 1px solid var(--off-grey); }
.single-image-wrapper a { position: relative; display: block; width: fit-content; margin: 0 auto;}

.image-holder { margin: 1.5rem 0; position: relative; }
.image-fit { max-width: 85%; margin: 0 auto; display: block; border: 1px solid var(--off-grey); }
.image-holder p, .image-holder p.dark { font-size: 0.8rem; color: #666; margin-top: 0.4rem; }
.img-spacer { margin: 0.75rem auto; }

.demo-image-link { display: block; position: relative; margin-bottom: 0.5rem; }
.demo-image-link img { width: 100%; height: auto; display: block; border: 1px solid var(--off-grey); }

/* ===== COMPANIES LIST ===== */
.companies { margin-top: 2rem; }

ul.companyList.plain {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 2rem;
  /* border-top: 1px solid var(--purple-mid); */
  text-align: center;
}
ul.companyList.plain li {
  font-size: 0.85rem; margin: 0;
  padding: 0.35rem 0;
  /* border-bottom: 1px solid var(--purple-light); */
}

@media (max-width: 640px) { ul.companyList.plain { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { ul.companyList.plain { grid-template-columns: 1fr; } }

/* ===== SPLIDE CAROUSEL ===== */
.splide,
.splide__slide,
.splide__slide * { font-family: 'Heuvel Grotesk', Helvetica, Arial, sans-serif; }
.quotes-carousel { padding: 1rem 0; position: relative; z-index: 1; }
.postRefLink { margin-top: 1rem; font-size: 0.9rem; }

/* Move arrows beside pagination dots (carousel.js relocates them to after .splide__track) */
.quotes-splide {
  padding-bottom: 2.5rem;
}
.quotes-splide .splide__arrow {
  position: absolute !important;
  top: auto !important;
  transform: none !important;
  bottom: 0.1em !important;
  background: rgba(255,255,255,0.2) !important;
  opacity: 1 !important;
}
.quotes-splide .splide__arrow:hover {
  background: rgba(255,255,255,0.35) !important;
  opacity: 1 !important;
}
.quotes-splide .splide__arrow svg { fill: var(--white); }
.quotes-splide .splide__arrow--prev { left: calc(50% - 90px) !important; }
.quotes-splide .splide__arrow--next { right: calc(50% - 90px) !important; left: auto !important; }

/* ===== GLIGHTBOX NAV ARROWS ===== */
.gnext,
.gprev {
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 50px !important; height: 50px !important;
  opacity: 1 !important;
  transition: background-color 0.3s ease;
}
.gnext:hover, .gprev:hover {
  background-color: rgba(255,255,255,0.25);
}

/* ===== GLIGHTBOX OVERRIDES ===== */
.gslide-description, .gdesc-inner, .gslide-title, .gslide-desc {
  font-family: 'Heuvel Grotesk', Helvetica, Arial, sans-serif !important;
  color: var(--off-white)  !important;
  margin-top: 0 !important;
}
.gslide-title{
  font-size: 1.2em !important;
  margin-bottom:  !important;
}

.gdesc-inner { background: var(--off-black) !important; border-top: 1px solid var(--purple-light) !important; }
.glightbox-container .gdesc-inner .gslide-desc { color: var(--off-white); font-size: 0.9em; }
.glightbox-container .gdesc-inner .gslide-desc a { color: var(--purple-light); text-decoration: underline; }
.glightbox-container { backdrop-filter: blur(4px); }
@media (max-width: 768px) { .gdesc-inner { background: transparent !important; } }

/* ===== COLOR PALETTE SWATCHES ===== */
.color-palette-section { margin: 1.5rem 0; border: 1px solid var(--off-grey); display: flex; flex-direction: column; }
.color-set { padding: 1rem; }
.color-set.set-1 { background: #000; }
.color-set.set-2 { background: #f2f2f2; }
.color-set.set-3 { background: var(--white); }
.set-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; margin: 0 0 0.75rem; }
.set-1 .set-title { color: var(--white); }
.set-2 .set-title, .set-3 .set-title { color: #111; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.color-swatch { display: flex; flex-direction: column; align-items: center; text-align: center; }
.color-square { width: 56px; height: 56px; margin-bottom: 0.35rem; border: 1px solid rgba(0,0,0,0.15); }
.secondary .color-square { width: 44px; height: 44px; }
.color-name { font-size: 0.65rem; line-height: 1.3; }
.set-1 .color-name { color: #ccc; }
.set-2 .color-name, .set-3 .color-name { color: #555; }

.ctl-mint-green     { background: #48BD97; }
.ctl-vibrant-blue   { background: #0047BB; }
.ctl-navy-blue      { background: #001E60; }
.lumen-light-blue   { background: #38C6F4; }
.lumen-blue         { background: #0C9ED9; }
.lumen-medium-blue  { background: #0075C9; }
.lumen-navy         { background: #083176; }
.lumen-red          { background: #E1251B; }
.lumen-dark-orange  { background: #E77528; }
.lumen-light-orange { background: #FF9E18; }
.lumen-orange       { background: #FB8429; }
.lumen-deep-orange  { background: #F95E4A; }
.lumen-dark-teal    { background: #0F3133; }

@media (min-width: 768px) {
  .color-palette-section { flex-direction: row; }
  .color-set { flex: 1; padding: 1.25rem 0.75rem; }
}

/* ===== CONTACT FORM ===== */
.contactForm { margin-top: 0.5rem; }
.form-row { margin-bottom: 0.75rem; }
.form-field { margin-bottom: 0.75rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: 'Heuvel Grotesk', Helvetica, Arial, sans-serif;
  font-size: 1rem; padding: 0.5rem;
  border: 1px solid var(--green); border-radius: 0;
  background: var(--white); color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--green-dark);
  box-shadow: 0 0 0 2px var(--green-light);
}
.form-field textarea { min-height: 120px; resize: vertical; }

.last-name-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

button.submit-button {
  background: var(--green-dark); color: var(--white); border: none;
  padding: 0.65rem 1.5rem;
  font-family: 'Heuvel Grotesk', Helvetica, Arial, sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer; letter-spacing: 0.05em;
  transition: background 0.2s;
}
button.submit-button:hover { background: var(--green); }
button.submit-button:focus-visible { outline: 2px solid var(--purple-dark); outline-offset: 2px; }

#form-messages { padding: 0.75rem; margin-bottom: 0.75rem; font-weight: 700; font-size: 0.9rem; display: none; }
#form-messages.success { display: block; border: 1px solid var(--green); background: var(--green-light); color: var(--green-dark); }
#form-messages.error { display: block; border: 1px solid #ef4444; background: #fee2e2; color: #b91c1c; }

.postformLink { margin-top: 1rem; font-size: 0.9rem; }
.postformLink a { color: var(--purple); }

/* ===== FOOTER ===== */
#footer { background: var(--purple-dark); padding: 1.5rem 1.25rem; text-align: center; }
#footer p { font-size: 0.8rem; margin: 0; }
#footer .wrapInner {background-color: transparent;}
#footer .wrapInner p {color:var(--white)}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .wrapOuter { padding: 2rem 1.5rem; }
  .wrapInner {  padding: 40px; }
}
@media (min-width: 768px) {
.title-ccw .box-content{  rotate: -90deg;}
.title-cw .box-content{  rotate: 90deg;}
.title-ccw .box-content .box-title, .title-cw .box-content .box-title{ font-size: 5rem;}
.title-ccw .box-content .box-subtitle, .title-cw .box-content .box-subtitle{ font-size: 2rem; line-height: 1.15;}
}

@media (min-width: 900px) {
  .wrapOuter { padding: 4rem 2.5rem; }
  h2 { margin-bottom: 1rem; }
  .box-item { padding: 1.25rem; }
  .wrapInner { max-width: 1200px; padding: 60px 100px;  border: 1px solid #8fbcb9; border-radius: 200px;}
  p {margin: 0 3rem 1rem;}
  .box-item p {margin: 0 0 1rem;}
}

/* ===== SPLATTER PARALLAX ===== */
/* Local instances (home hero, recommendations, box/takeaway labels):
   absolutely fill whatever position:relative ancestor sizes them. */
.splatter-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}
/* Site-wide vertical field: fixed behind everything, on every page. */
#splatter-fullpage-field {
  position: fixed;
  z-index: -1;
}

.splatter-circle {
  position: absolute;
  pointer-events: none;
}
.splatter-circle-shape {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-origin: 50% 50%;
  animation: splatterCirclePop 0.6s ease-out forwards;
}

@keyframes splatterCirclePop {
  0%   { transform: scale(0.02); }
  55%  { transform: scale(1.05); }
  75%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .splatter-circle-shape { animation: none !important; }
}
