/* =========================================================================
   CINAT Advertising — static stylesheet
   Colors: brand teal #093233, brand yellow #fdbf0f, black #000
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'MilliardBook';
  src: url('fonts/ReneBieder-MilliardBook.otf') format('opentype');
  font-weight: normal; font-style: normal;
}
@font-face {
  font-family: 'MilliardBold';
  src: url('fonts/ReneBieder-MilliardBold.otf') format('opentype');
  font-weight: normal; font-style: normal;
}
@font-face {
  font-family: 'MilliardBlack';
  src: url('fonts/ReneBieder-MilliardBlack.otf') format('opentype');
  font-weight: normal; font-style: normal;
}
@font-face {
  font-family: 'MilliardExtraBold';
  src: url('fonts/ReneBieder-MilliardExtraBold.otf') format('opentype');
  font-weight: normal; font-style: normal;
}
@font-face {
  font-family: 'MilliardHeavy';
  src: url('fonts/ReneBieder-MilliardHeavy.otf') format('opentype');
  font-weight: normal; font-style: normal;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  font-family: 'MilliardBook';
  margin: 0;
  background-color: #000;
  background-image: url(effectx.png);
  background-size: 50%;
  background-repeat: repeat;
  background-position: center;
  /* Guard against horizontal scroll from the .stamp scale-in animation and
     any wide animated tracks. overflow-x:clip clips without creating a scroll
     container, so position:sticky on the header keeps working. */
  overflow-x: clip;
}

a { text-decoration: none; }

a:hover {
  color: #fdbf0f;
  padding-bottom: 5px;
  font-weight: bold;
}

img { border: 0; }

.font-milliard-bold-600 { font-family: MilliardBold; font-weight: 600; }

/* ---------- Live text editor (only when URL contains "edit") ---------- */
#edittablex {
  z-index: 999999999999;
  position: fixed;
  width: 50%; left: 25%;
  height: 60px;
  border: 2px solid gold;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  border-radius: 10px;
  display: none;
}

/* ---------- Splash / transition loaders ---------- */
.fade-box {
  transition: opacity .5s ease-in-out;
  opacity: 0;
  position: fixed;
  width: 100vw; height: 100vh;
  left: 0; top: 0;
  background-color: #000;
  z-index: 99999;
  display: none;
  text-align: center;
}
.fade-box.show { display: block; opacity: 1; }

.fade-box-fixed {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: #093233;
  z-index: 99999999;
  text-align: center;
}
.splash-logo { width: 300px; margin-top: 30vh; }

/* ---------- Sticky header ---------- */
#sticky-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #000;
  color: #fff;
  padding: 12px 5%;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  opacity: .98;
  font-family: MilliardBold;
}
#sticky-banner #logoxx { width: auto; height: 92px; margin: 0; display: block; flex: 0 0 auto; }
#sticky-banner #menu {
  display: none; cursor: pointer; flex: 0 0 auto;
  /* center.png is a black icon; the header bar is black, so invert it to
     white to make the mobile menu button visible. */
  width: 38px; height: 38px; margin: 0; filter: invert(100%);
}
#sticky-bannerx { display: flex; align-items: center; gap: 22px; }
#sticky-banner a { color: #fff; text-decoration: none; padding-bottom: 4px; white-space: nowrap; }
#sticky-banner a:hover { color: #fdbf0f; border-bottom: 1px solid #fdbf0f; font-weight: bold; }
#sticky-banner a.active { color: #fdbf0f; padding-bottom: 4px; border-bottom: 1px solid #fdbf0f; font-weight: bold; }

/* ---------- Mobile drawer ---------- */
#sticky-banner2 { display: none; }
.mobile-menu-table {
  width: 80%; opacity: .98; font-size: 40px; height: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
  z-index: 9999999999;
  background-color: #fff;
  position: fixed; bottom: 0; right: 0;
  margin: 10%; margin-bottom: 120px;
  border-radius: 50px; padding: 50px;
}
.mobile-menu-table a { color: #093233; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
#aboutToggleLabel { color: #fff; letter-spacing: 0; font-weight: normal; margin: 0; cursor: pointer; }
/* Black menu by default (matches the header); brand-yellow highlight on hover */
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background: #000; z-index: 1001; min-width: 160px; box-shadow: 0 6px 16px rgba(0,0,0,.4); border: 1px solid #fdbf0f; }
/* Open on hover (desktop) or via the checkbox toggle (click / touch) */
.dropdown:hover .dropdown-menu, #about-toggle:checked + .dropdown-menu { display: block; }
/* Scoped under #sticky-banner so these win over the generic `#sticky-banner a`
   colour rules (an ID selector) — otherwise the hovered item rendered yellow
   text on the yellow highlight and the words vanished. */
#sticky-banner .dropdown-menu a { display: block; padding: 12px 16px; color: #fff; font-weight: normal; text-align: left; word-spacing: 0; border-bottom: 0; }
#sticky-banner .dropdown-menu a:hover { background-color: #fdbf0f; color: #093233; font-weight: bold; border-bottom: 0; }

/* ---------- Layout helpers ---------- */
.spacer { background-color: #000; height: 5vh; }

/* ---------- Hero ---------- */
.hero-section {
  background-color: #000; color: #fff;
  height: 90vh; width: 100%;
  /* background-image: url(images/bgim.jpg); */
  background-image: url(images/bg.jpg);
  background-size: cover; background-position: center;
  position: relative; top: 0;
  border-spacing: 0;
  margin-top: -20vh;
  box-shadow: 0 -200px 0 #000;
}
.hero-cell { background-color: rgba(0,0,0,.5); padding: 0 0 120px 0; }
#myVideo3 { display: none; }
.hero-title { text-align: center; margin-top: 10vh; width: 100%; font-size: 100px; font-family: MilliardBold; overflow: hidden; }
.hero-subtitle { font-size: 40px; color: #fdbf0f; }

/* ---------- Intro ---------- */
.introductory-section {
  background-color: #093233;
  background-image: url(effectx.png);
  background-size: 50%; background-repeat: repeat; background-position: top;
}
.intro-content {
  font-size: 70px; font-family: MilliardBook;
  padding: 55px 130px 30px;
  text-align: left; color: #fff;
}
.highlight-text { color: #fdbf0f; font-family: MilliardBold; line-height: 40px; }
.intro-subtext { font-size: 20px; color: #fff; font-weight: 100; display: block; }
.subtext-bold { font-size: 30px; font-family: MilliardBold; }
.about-us-btn {
  color: #093233; font-size: 17px; font-family: MilliardBold;
  background-color: #fdbf0f; border: 0;
  width: 120px; height: 50px; line-height: 50px;
  font-weight: bold; border-radius: 20px; margin-top: 20px; cursor: pointer;
}

/* ---------- About ---------- */
.container-about {
  background-color: #093233; color: #fff;
  background-image: url(effectx.png);
  background-size: 50%; background-repeat: repeat; background-position: top;
  text-align: center;
}
/* Responsive 16:9 video embed — was a fixed 90vh box that letter-boxed on
   desktop and overflowed awkwardly on phones. */
#yout { display: block; width: 100%; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.about-grid-title { font-size: 50px; font-weight: 600; letter-spacing: 1px; color: #fff; padding-top: 40px; }
.about-grid-title b { font-family: MilliardBold; }
.about-flex-container {
  display: flex; flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px; max-width: 1100px; margin: 0 auto;
}
.about-flex-box { width: 40%; padding: 2.5%; text-align: left; font-size: 14px; color: #fff; }
.full-flex-box { width: 90%; }
.about-box-heading { font-family: MilliardBold; font-size: 27px; color: #fdbf0f; }
.noise-container { width: 100%; float: left; background-color: #093233; text-align: center; }
.noise-btn {
  background-color: #fdbf0f; color: #000;
  padding: 10px 25px; font-family: MilliardBold; font-size: 17px;
  border: 0; border-radius: 100px; cursor: pointer;
}

/* ---------- About image slider ---------- */
.slider { width: 100%; overflow: hidden; position: relative; margin: auto; }
.slider-header { font-weight: bold; font-size: 22px; color: #fff; }
.slider-title { font-size: 45px; font-family: MilliardBold; letter-spacing: 1px; color: #fdbf0f; }
.slides { display: flex; width: 500%; animation: slide 15s infinite; }
.slides img { width: 20%; height: auto; }
@keyframes slide {
  0%,20%   { margin-left: 0%; }
  25%,45%  { margin-left: -100%; }
  50%,70%  { margin-left: -200%; }
  75%,95%  { margin-left: -300%; }
  100%     { margin-left: -400%; }
}

/* ---------- Services ---------- */
.services-section-container { background-color: #093233; padding-top: 60px; float: left; width: 100%; }
.services-header-title { font-family: MilliardBook; font-size: 65px; color: #fdbf0f; letter-spacing: .5px; display: inline-block; padding-bottom: 5px; border-bottom: 1px solid #000; }
.services-header-title b { font-family: MilliardBold; font-weight: 600; }
.services-table { width: 100%; border-spacing: 0; font-size: 40px; font-weight: bold; font-family: MilliardBold; margin-top: 60px; }
.services-cell-left-dark   { padding: 5vw; background-color: #093233; color: #fff; text-align: left; }
.services-cell-right-dark  { font-family: MilliardBook; font-size: 15px; padding: 5vw; background-color: #093233; color: #fff; text-align: right; }
.services-cell-left-light  { font-family: MilliardBook; font-size: 15px; padding: 5vw; background-color: #fff; color: #093233; text-align: left; }
.services-cell-right-light { padding: 5vw; background-color: #fff; color: #093233; text-align: right; }
.services-cell-left-yellow { padding: 5vw; background-color: #fdbf0f; color: #000; text-align: left; }
.services-cell-right-yellow{ font-family: MilliardBook; font-size: 15px; padding: 5vw; background-color: #fdbf0f; color: #000; text-align: right; }

/* ---------- Team ---------- */
.team-section-container { background-color: #000; width: 100%; padding-top: 100px; float: left; }
.team-title-span { padding-bottom: 5px; border-bottom: 1px solid #000; font-size: 45px; font-family: MilliardBook; letter-spacing: .5px; color: #fdbf0f; }
.team-intro-text { display: inline-block; width: 70%; color: grey; }
.team-grid-wrapper {
  display: flex; flex-wrap: wrap; justify-content: center;
  width: 100%; margin-top: 40px;
  background-color: #000;
  background-image: url(effecty.png);
  background-size: 50%; background-repeat: repeat; background-position: bottom;
}
.team-spacer { width: 100%; height: 50px; float: left; background-color: #000; }

.picture-frame { position: relative; overflow: hidden; }
/* 3 uniform cards per row on desktop (30% + 1.5% margins) → clean 2×3 grid */
.team-grid-wrapper .picture-frame { width: 30%; margin: 1.5%; aspect-ratio: 1 / 1.15; }
.picture-frame img { width: 100%; display: block; }
/* Every photo is scaled to fill its card uniformly, biased to the top so faces
   are never cropped, regardless of the source image's dimensions. */
.team-grid-wrapper .picture-frame .team-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-img { filter: grayscale(90%); min-width: 0; }
.picture-frame:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,.2); position: relative; z-index: 999; }

/* "Add space for one more" — open team slot */
.team-add-slot { background-color: #093233; border: 2px dashed #fdbf0f; display: flex; align-items: center; justify-content: center; }
.team-add-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fdbf0f; text-align: center; padding: 10px; }
.team-add-plus { font-size: 64px; line-height: 1; font-family: MilliardBold; }
.team-add-text { font-size: 15px; font-family: MilliardBold; letter-spacing: .5px; }
.team-add-slot:hover { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,.2); }

.slide-in-overlayx {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%);
  color: #fff; padding: 12px; box-sizing: border-box; text-align: left;
}
.slide-in-overlayx br { display: none; }
.member-name { display: inline-block; align-self: flex-start; background-color: #093233; color: #fff; font-weight: bold; padding: 3px 7px; font-size: 15px; }
.member-role { display: inline-block; align-self: flex-start; background-color: #fdbf0f; color: #093233; font-size: 11px; font-weight: bold; padding: 2px 7px; margin-top: 3px; }

/* ---------- Cases / Work ---------- */
.cases-section { background-color: #000; color: grey; float: left; width: 100%;
  background-image: url(effectx.png); background-size: 50%; background-repeat: repeat; background-position: center -265px; }
.cases-title { padding-bottom: 5px; border-bottom: 1px solid #000; font-size: 45px; font-family: MilliardBook; letter-spacing: .5px; color: #fdbf0f; }
.cases-intro { display: block; margin: 4%; padding: 0 10%; font-size: 20px; color: grey; }

/* Work showcase video */
/* Hidden by default; only revealed on the Work view (see showSingle in script.js) */
.work-video { display: none; width: 100%; max-height: 55vh; object-fit: cover; margin: 0 auto 10px; }

/* Infinite-scroll project carousel */
.work-carousel { overflow: hidden; position: relative; width: 100%; margin-top: 20px; }
.work-track { display: flex; width: max-content; animation: scroll 50s linear infinite; }
.work-carousel:hover .work-track { animation-play-state: paused; }
.work-card {
  position: relative; flex: 0 0 auto;
  width: 340px; height: 340px; margin: 0 10px;
  overflow: hidden; display: block; border-bottom: 0;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.work-card:hover img { transform: scale(1.06); }
.work-card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(9,50,51,.92); color: #fdbf0f;
  font-family: MilliardBold; font-size: 18px; padding: 12px 16px; text-align: left;
}
.view-work-btn {
  background-color: #093233; font-size: 17px; font-family: MilliardBold; color: #fdbf0f;
  border: 0; width: 200px; height: 50px; line-height: 50px; font-weight: bold;
  border-radius: 20px; margin-top: 20px; cursor: pointer;
}

/* ---------- Partners ---------- */
.partners-section {
  padding: 0; width: 100%; float: left;
  background-color: #093233; color: #fdbf0f;
  background-image: url(effectx.png); background-size: 50%; background-repeat: repeat; background-position: bottom;
  text-align: center;
}
.partners-title { font-size: 38px; font-weight: 600; letter-spacing: .5px; border-bottom: 1px solid #fdbf0f; padding-bottom: 5px; display: inline-block; }
.partners-title b { font-family: MilliardBold; }
.logo-slider { overflow: hidden; position: relative; height: 100px; margin-top: 50px; margin-bottom: 30px; }
.logo-track { display: flex; width: max-content; animation: scroll 60s linear infinite; align-items: center; }
.logo-track img { height: 100px; margin: 0 20px; }
.logo-track .logo-capital { height: 150px; margin-top: -30px; }
.logo-track .logo-uganda { height: 70px; margin-top: 15px; }
.logo-track .logo-israaid { height: 64px; }
.logo-slider:hover .logo-track { animation-play-state: paused; }
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Blog (native articles, no external provider) ---------- */
.blog-section {
  width: 100%; float: left;
  background-color: #093233; color: #fff;
  background-image: url(effectx.png); background-size: 50%; background-repeat: repeat; background-position: top;
  padding-bottom: 70px;
}
.blog-head { text-align: center; padding: 40px 20px 6px; }
.blog-head h1 { font-family: MilliardBold; font-size: 52px; color: #fdbf0f; margin: 0; }
.blog-head p { max-width: 720px; margin: 14px auto 0; color: #cfe0e0; font-size: 17px; line-height: 1.6; }

/* Posts shown as a single vertical column (one project after another), mirroring
   the blogspot layout: image + meta, title, excerpt, read-more — stacked rows. */
.blog-list { max-width: 1240px; margin: 28px auto 0; padding: 0 30px; }
.blog-post { display: flex; gap: 30px; align-items: center; padding: 26px 0; border-bottom: 1px solid rgba(253,191,15,.22); }
.blog-post:first-child { padding-top: 6px; }
.blog-post:last-child { border-bottom: 0; }
.blog-post a:hover { padding-bottom: 0; }   /* neutralise the global a:hover spacing inside posts */
.blog-post-media { flex: 0 0 320px; aspect-ratio: 4 / 3; overflow: hidden; background: #093233; display: block; border-bottom: 0; }
.blog-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-post:hover .blog-post-media img { transform: scale(1.05); }
.blog-post-body { flex: 1; }
.blog-post-cat { display: block; font-family: MilliardBold; font-size: 12px; letter-spacing: 1px; color: #fdbf0f; text-transform: uppercase; }
.blog-post-title-link { display: inline-block; border-bottom: 0; }
.blog-post-title { font-family: MilliardBold; font-size: 26px; color: #fff; margin: 8px 0 10px; line-height: 1.2; }
.blog-post:hover .blog-post-title { color: #fdbf0f; }
.blog-post-excerpt { font-size: 15px; color: #c2cfcf; line-height: 1.65; margin: 0; }
.blog-post-readmore { display: inline-block; margin-top: 14px; font-family: MilliardBold; font-size: 14px; color: #fdbf0f; border-bottom: 0; }
.blog-post-readmore:hover { color: #fff; }

/* Single article page */
.article { max-width: 1080px; margin: 0 auto; padding: 34px 30px 10px; color: #eaf1f1; }
.article-back { display: inline-block; margin-bottom: 18px; color: #fdbf0f; font-family: MilliardBold; font-size: 14px; }
.article-back:hover { color: #fff; }
.article-cat { font-family: MilliardBold; font-size: 13px; letter-spacing: 1.5px; color: #fdbf0f; text-transform: uppercase; }
.article-title { font-family: MilliardBold; font-size: 40px; color: #fff; line-height: 1.15; margin: 8px 0 6px; }
.article-meta { font-size: 14px; color: #9fb3b3; margin-bottom: 26px; }
.article-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 30px; display: block; }
/* Wide container (big hero + gallery, small side margins) but the reading column
   stays a comfortable width so lines aren't too long. */
.article-body { max-width: 820px; margin: 0 auto; }
.article-body p { font-size: 17px; line-height: 1.75; color: #d9e4e4; margin: 0 0 20px; }
.article-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0 6px; }
.article-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: #000; }
.article-cta { text-align: center; margin: 44px 0 10px; }

/* ---------- Make-noise band ---------- */
.noise-band {
  padding-top: 0; float: left; width: 100%;
  background-color: #093233; color: #fdbf0f;
  background-image: url(effectx.png); background-size: 50%; background-repeat: repeat; background-position: top;
}
.noise-band-title { padding: 50px; padding-bottom: 10px; font-size: 55px; font-family: MilliardBold; line-height: 90px; color: #fdbf0f; }
.noise-band-rule { width: 35%; border: 0; border-top: 1px solid #fff; margin-top: 0; }
.noise-band-btn {
  background-color: #fdbf0f; font-size: 17px; font-family: MilliardBold; color: #000;
  border: 0; width: 200px; height: 50px; line-height: 50px; font-weight: bold; border-radius: 20px; cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-section {
  width: 100%; float: left; position: relative; z-index: 999;
  background-color: #093233;
  background-image: url(effectx.png); background-size: 50%; background-repeat: repeat; background-position: center;
  box-shadow: 0 50px 0 #093233, -50px 0 #093233;
}
.contact-container { max-width: 600px; margin: 50px auto; padding: 30px; color: #fdc014; }
.contact-video { display: block; width: 100%; max-height: 38vh; object-fit: cover; margin-bottom: 20px; border-radius: 6px; }
.contact-title { font-family: MilliardBold; font-size: 40px; }
.contact-sub { margin-top: -10px; margin-bottom: 20px; }
.contact-fields { width: 100%; color: #fff; border-spacing: 0; }
.contact-field-cell { width: 45%; vertical-align: top; }
.contact-field-gap { width: 10%; }
.contact-section label { display: block; margin: 10px 0 5px; font-weight: bold; }
.contact-label-light { color: #fff; }
.contact-section input,
.contact-section textarea {
  width: 100%; padding: 10px; margin-bottom: 15px;
  border: 0; border-radius: 4px; box-sizing: border-box;
  background-color: #fdc014; color: #093233;
}
.honeypot { display: none !important; }
.contact-submit {
  background: #000; color: #fdc014; font-family: 'MilliardBold';
  padding: 10px; width: 150px; border: 0; border-radius: 5px;
  font-weight: bold; font-size: 17px; cursor: pointer;
}
.form-status { margin-top: 15px; padding: 0; border-radius: 4px; font-weight: bold; }
.form-status.success { background: #d4edda; color: #155724; padding: 10px; }
.form-status.error   { background: #f8d7da; color: #721c24; padding: 10px; }
.form-status.sending { color: #fdc014; }
.contact-details { margin-top: 30px; font-size: 13px; color: #fff; line-height: 1.8; }
.contact-details a { color: #fdc014; }

/* ---------- Rave ---------- */
.rave-section { float: left; width: 100%; background-color: #000; padding-bottom: 50px; }
.rave-hero { float: left; width: 100%; background-image: url(images/bgim.jpg); background-size: cover; background-position: center; }
.rave-hero-inner { width: 100%; background-color: rgba(0,0,0,.8); padding-top: 50px; overflow: hidden; }
.rave-text { float: left; color: #fff; font-size: 27px; width: 45%; padding: 5%; }
.rave-img { float: right; width: 35%; min-width: 250px; margin: 5%; margin-top: 0; opacity: .9; filter: invert(100%); }
.rave-awards-title { clear: both; text-align: center; color: #fdbf0f; font-family: MilliardBold; font-size: 40px; margin: 40px 0 6px; padding-top: 20px; }
.rave-carousel { padding-bottom: 20px; }
.rave-card img { filter: grayscale(60%); }
.rave-card:hover img { filter: grayscale(0%); }

/* ---------- Footer ---------- */
/* Flex row of equal-height columns: the columns stretch to the tallest content
   (the info column with the large logo) instead of overflowing a fixed height. */
.site-footer { width: 100%; float: left; display: flex; flex-wrap: wrap; }
.footer-col { float: none; background-color: #093233; min-height: 250px; color: #fff; font-family: MilliardBook; }
.footer-col-info   { width: 35%; padding: 20px 20px 20px 40px; font-size: 10px; }
.footer-col-social { width: 30%; padding: 20px; font-size: 12px; }
.footer-col-copy   { width: 35%; padding: 55px 20px 20px; font-size: 10px; }
.footer-logo { height: 160px; margin-top: -30px; margin-left: -15px; }
.footer-address { float: left; margin-top: 0; opacity: .9; }
.social-icon { height: 25px; filter: invert(100%); }
.footer-col-social a { margin-right: 4px; }

/* ---------- Animations ---------- */
.logo-loading { animation: fadeInOut 1s ease-in-out infinite; }
@keyframes fadeInOut { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.stamp { display: inline-block; transform: scale(5); transform-origin: center center; animation: zoomIn .6s ease-out forwards; opacity: 0; }
@keyframes zoomIn { 0% { transform: scale(5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.reveal-wrapper { overflow: hidden; height: 85px; display: inline-block; }

.typing-title {
  font-size: 32px; font-weight: 600;
  display: inline-block; overflow: hidden; white-space: nowrap;
  border-right: 3px solid transparent;
  width: 14ch;
  animation: typing 3s steps(14) infinite alternate, blink-caret .75s step-end infinite;
}
@keyframes typing { from { width: 0; } to { width: 13ch; } }
@keyframes blink-caret { from,to { border-color: transparent; } 50% { border-color: #fdbf0f; } }

/* =========================================================================
   Responsive — folds in the old mob.php sizing (replaces the redirect)
   ========================================================================= */
@media (max-width: 820px) {
  /* Tablets & down use the slide-up drawer — the inline nav crowds the larger
     logo below ~820px. */
  #sticky-bannerx { display: none; }
  #sticky-banner #menu { display: block; }

  .about-flex-box { width: 46%; }
  .team-grid-wrapper .picture-frame { width: 31%; }
  .intro-content { font-size: 48px; padding: 40px; }
  .blog-post-media { flex-basis: 200px; }
  .blog-post-title { font-size: 22px; }

  /* Tablet: the hero title was still 100px (only the phone breakpoint shrank it) */
  .hero-title { font-size: 64px; }
  .hero-subtitle { font-size: 30px; }
  .services-header-title { font-size: 52px; }
  .services-cell-left-dark, .services-cell-left-yellow,
  .services-cell-right-light { font-size: 30px; }
  .noise-band-title { font-size: 42px; line-height: 64px; }
  .blog-head h1 { font-size: 44px; }
}

@media (max-width: 500px) {
  /* Header: compact logo + hamburger, inline links hidden */
  #sticky-banner { padding: 10px 5%; }
  #sticky-banner #logoxx { height: 70px; width: auto; margin: 0; }
  #sticky-banner #menu { display: block; }
  #sticky-bannerx { display: none; }

  /* Hero */
  .hero-section { height: 80vh; }
  .hero-title { font-size: 44px; margin-top: 6vh; }
  .hero-subtitle { font-size: 24px; }

  /* Intro */
  .intro-content { font-size: 40px; line-height: 44px; padding: 30px 22px; }
  .intro-subtext { font-size: 16px; }
  .subtext-bold { font-size: 22px; }

  /* About cards stack full width */
  .about-grid-title { font-size: 34px; }
  .about-flex-box, .full-flex-box { width: 92%; }
  .about-box-heading { font-size: 22px; }

  /* Services: stack each row into a single column */
  .services-header-title { font-size: 40px; }
  .services-table, .services-table tbody, .services-table tr, .services-table td { display: block; width: 100%; }
  .services-cell-left-dark, .services-cell-right-dark,
  .services-cell-left-light, .services-cell-right-light,
  .services-cell-left-yellow, .services-cell-right-yellow {
    text-align: left; padding: 30px 22px; font-size: 28px;
  }
  .services-cell-right-dark, .services-cell-left-light,
  .services-cell-right-light, .services-cell-right-yellow { font-size: 15px; }

  /* Team grid two-up */
  .team-title-span { font-size: 30px; }
  .team-intro-text { width: 88%; }
  .team-grid-wrapper .picture-frame { width: 46%; }

  /* Cases fluid */
  .cases-title { font-size: 30px; }
  .cases-intro { font-size: 16px; padding: 0 6%; }

  /* Blog: each post stacks (image on top, text below) */
  .blog-head h1 { font-size: 36px; }
  .blog-post { flex-direction: column; align-items: stretch; gap: 14px; padding: 24px 0; }
  .blog-post-media { flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; }
  .blog-post-title { font-size: 22px; }
  .article-title { font-size: 30px; }
  .article-gallery { grid-template-columns: 1fr; }

  /* Partners */
  .partners-title { font-size: 28px; }

  /* Make-noise band */
  .noise-band-title { font-size: 34px; line-height: 50px; padding: 30px; }

  /* Contact: stack fields */
  .contact-container { padding: 20px; margin: 30px auto; }
  .contact-title { font-size: 30px; }
  .contact-fields, .contact-fields tbody, .contact-fields tr, .contact-fields td { display: block; width: 100%; }
  .contact-field-gap { display: none; }

  /* Rave stacks */
  .rave-text { width: 90%; font-size: 20px; }
  .rave-img { float: none; display: block; width: 70%; margin: 20px auto; }

  /* Footer stacks into a single column */
  .footer-col { width: 100% !important; height: auto; padding: 30px 22px; }
  .footer-col-copy { padding-top: 30px; }
}
