@font-face {
  font-display: block;
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/bebas-neue-v16-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: 'DM Sans';
  font-size: 16px;
}

a {
  -webkit-tap-highlight-color: transparent;
}

img {
  width: 100%;
  height: auto;
}

img.lazy {
  opacity: 0;
  transition: opacity 1.5s ease;
}

img.lazy.loaded {
  opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
}

h1, .has-h1-font-size {
  font-size: 5.208rem;
  line-height: 4.771rem;
}

h1 span {
  color: #1E35FF;
}

#work h1 br {
  display: none;
}

h2, .has-h2-font-size {
  font-size: 3.617rem;
  line-height: 1;
}

h3, .has-h3-font-size {
  font-size: 3.014rem;
  line-height: 1;
}

h4, .has-h4-font-size {
  font-size: 2.511rem;
  line-height: 1;
}

h5, .has-h5-font-size {
  font-size: 2.093rem;
  line-height: 1;
}

h6, .has-h6-font-size {
  font-size: 1.454rem;
  line-height: 1;
}

a {
  outline: none;
}

footer {
  padding: 1.25rem 0;
}

.large-paragraph {
  font-size: 1.211rem;
}

.grid-container, .grid-container.fluid {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.grid-container.full {
  padding-right: 0;
  padding-left: 0;
}

.title-bar {
  background: none;
  padding: 0;
}

.title-bar-right {
  display: flex;
  align-items: center;
  justify-content: right;
}

.title-bar-left a {
  display: inline-block;
}

.logo {
  fill: #0c0c0c;
  width: 89px;
  height: 40px;
}

/* Hamburger Menu Starts */
.hamburger {
  position: relative;
  z-index: 98;
  display: inline-block;
  cursor: pointer;
  margin-top: -7px;
}

.bar1, .bar3 {
  width: 48px;
  height: 2px;
  background-color: #0c0c0c;
  margin: 2px 0;
  transition: 0.4s;
}

.invis {
  width: 48px;
  height: 2px;
  margin: 2px 0;
}

.change .bar1 {
  -webkit-transform: rotate(-45deg) translate(-2px, 4px);
  transform: rotate(-45deg) translate(-2px, 4px);
  background-color: #fff;
}

.change .bar3 {
  -webkit-transform: rotate(45deg) translate(-2px, -4px);
  transform: rotate(45deg) translate(-2px, -4px);
  background-color: #fff;
}
/* Hamburger Menu Ends */


/* ==========================================
   MENU POPOUT
========================================== */

body:has(.is-open) {
  overflow: hidden;
  height: 100svh; /* Prevents bouncing on mobile */
}

body:has(.is-open) .logo {
  fill: #fff;
}

.position-top {
  height: auto;
}

.js-off-canvas-overlay {
  background: #1E35FF;
}

.off-canvas {
  background: none;
  height: 100%;
  -webkit-transform: translateY(-100svh);
  transform: translateY(-100svh);
}

.off-canvas.is-transition-overlap.is-open {
  webkit-box-shadow: none;
  box-shadow: none;
}

.off-canvas .menu {
  top: 50%;
  translate: 0 -50%;
}

.off-canvas .menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  color: #fff;
  text-align: center;
}

.off-canvas .menu a:hover {
  opacity: 0.6;
}

/* ==========================================
   HEADER DOWNLOAD CV LINK
========================================== */

.header-download {
  position: absolute;
  bottom: 0;
  left: 0;
}

#download-arrow {
  position: absolute;
  height: 45px;
  width: 45px;
  left: 50%;
  top: 50%;
  translate: -50% -60%;  
}

#download-arrow #Line_1, #download-arrow #Path_1 {
  stroke: #fff;
}

.header-download-text {
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  fill: #fff;
}

#rotatingText {
  width: 150px;
  height: 150px;
  animation-name: rotate-circle;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes rotate-circle {
  to {
    transform: rotate(1turn);
  }
}

/* ==========================================
   HOMEPAGE TICKER
========================================== */

.ticker, .ticker2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 83.33px;
  line-height: 0.9;
  overflow: hidden;
  width: 100%;
}

.ticker2 {
  margin-bottom: 3.75rem;
}

.ticker__track, .ticker__track2 {
  display: flex;
  width: max-content;
}

.ticker__content, .ticker__content2 {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}

.ticker sup, .ticker2 sup {
  font-family: 'DM Sans', sans-serif;
  font-size: 50px;
}

/* ==========================================
   ANIMATED TEXT LOAD
========================================== */

.tag {
  opacity: 0;
  transform: translate(0, 5vh);
  transition: all 1s;
}

.tag2 {
  opacity: 0;
  transform: translate(0, -10vh);
  transition: all 1s;
}

.tag.visible, .tag2.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================
   FLICKITY (HOMEPAGE CAROUSEL)
========================================== */

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.flickity-enabled {
  position: relative;
}

.flickity-enabled:focus { outline: none; }

.flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* ==========================================
   FLICKITY BUTTON
========================================== */

.flickity-button {
  position: absolute;
  background: hsla(0, 0%, 100%, 0.75);
  border: none;
  color: #333;
}

.flickity-button:hover {
  background: white;
  cursor: pointer;
}

.flickity-button:focus {
  outline: none;
  box-shadow: 0 0 0 5px #19F;
}

.flickity-button:active {
  opacity: 0.6;
}

.flickity-button:disabled {
  opacity: 0.3;
  cursor: auto;
  /* prevent disabled button from capturing pointer up event. #716 */
  pointer-events: none;
}

.flickity-button-icon {
  fill: #0c0c0c;
}

/* ==========================================
   FLICKITY PREVIOUS/NEXT BUTTONS
========================================== */

.flickity-prev-next-button {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* vertically center */
  transform: translateY(-50%);
}

.flickity-prev-next-button.previous { left: 10px; }
.flickity-prev-next-button.next { right: 10px; }
/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
  left: auto;
  right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
  right: auto;
  left: 10px;
}

.flickity-prev-next-button .flickity-button-icon {
  position: absolute;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
}

/* ==========================================
   FLICKITY PAGE DOTS
========================================== */

.flickity-page-dots {
  position: absolute;
  width: 100%;
  bottom: -75px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-rtl .flickity-page-dots { direction: rtl; }

.flickity-page-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px;
  background: #333;
  border-radius: 50%;
  opacity: 0.25;
  cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
  opacity: 1;
}

.gallery {
  background: none;
}

.gallery-cell {
  width: 73%;
  /* height: 500px; */
  margin-right: 40px;
  background: none;
  counter-increment: gallery-cell;
}

/* cell number */
.gallery-cell:before {
  display: block;
  text-align: center;
  line-height: 200px;
  font-size: 80px;
  color: white;
}

/* ==========================================
   BACK TO TOP BUTTON
========================================== */

#backToTop {
  position: fixed;
  bottom: 50px;
  right: 40px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-circle {
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 2;
  transition: stroke-dashoffset 0.15s linear;
}

.progress-circle .bg {
  stroke: rgba(12,12,12,0.2);
}

.progress-circle .fg {
  stroke: #0c0c0c;
  stroke-dasharray: 175.84;
  stroke-dashoffset: 175.84;
}

#backToTop .arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #0c0c0c;
  pointer-events: none;
}

/* ==========================================
   ALL PAGES
========================================== */

.header {
  padding-top: 1.5rem;
  position: relative;
  background: #fff;
}

.copyright {
  text-align: left;
}

/* ==========================================
   HOMEPAGE
========================================== */

#homepage .off-canvas-content {
  background: #1E35FF;
  transition: background .5s ease;
}

#homepage .header {
  height: 100svh;
}

.header-title-text {
  margin-top: 20px;
  width: 275px;
}

.header-text {
  position: absolute;
  left: 1.5rem;
  top: 325px;
  width: 330px;
  display: none;
}

.header-photo {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  height: 20.313rem;
  background-image:url(../assets/img/homepage/steve.webp);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

#homepage section {
  min-height: 100svh;
}

.about {
  padding: 10vh 0;
  color: #fff;
  display: flex;
  align-items: center;
}

.about p {
  margin-bottom: 3.75rem;
}

.about ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.about li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center; // This centers the icon vertically
}

.about li span {
  display: flex; // This aligns the icon with the text
}

.about li svg {
  margin-right: 0.75rem;
}

.work {
  padding: 10svh 0;
  color: #fff;
  text-align: center;
}

.work h2 {
  margin-top: 0 !important;
  position: relative;
  z-index: 98;
}

.work h3 {
  font-size: 4.34rem;
}

.work .gallery-cell a {
  overflow: hidden;
  display: inline-block;
  margin-bottom: 1.875rem;
}

.work img {
  transition: transform 0.5s;
}

.work img:hover {
  transform: scale(1.10);
}

.contact {
  font-size: 24px;
  padding: 10svh 0;
  color: #0c0c0c;
  text-align: center;
  display: flex;
  align-items: center;
}

.contact h2 {
  margin-bottom: 2.5rem;
}

.contact a {
  color: #0c0c0c;
  text-decoration: underline;
}

.contact a:hover {
  text-decoration: none;
}

/* ==========================================
   WORK PAGE
========================================== */

#work section {
  text-align: center;
  padding: 3.125rem 0;
}

#work section:first-of-type {
  text-align: inherit;
  padding: 1.5rem 0 0 0;
}

#work section:nth-child(2) {
  padding-bottom: 0;
}

#work .work-gallery h2 {
  margin-bottom: 3.125rem;
}

.work-gallery a {
  overflow: hidden;
  display: block;
  margin-bottom: 1.875rem;
}

.work-gallery img {
  transition: opacity 1.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.work-gallery img:hover {
  transform: scale(1.10);
}


/* ==========================================
   CLIENT PAGE
========================================== */

#client-page section {
  padding: 3.125rem 0;
}

#client-page section:first-of-type {
  padding: 1.5rem 0 0 0;
}

#client-page section:nth-child(2) {
  padding-bottom: 0;
}

.category-box {
  background: #1E35FF;
  color: #ffffff;
  padding: 7px 10px;
  text-transform: uppercase;
  margin: 0 15px 15px 0;
  font-size: 0.694rem;
  line-height: normal;
  font-weight: 500;
  letter-spacing: 10%;
  display: inline-block;
}

#client-page .top-margin {
  margin-top: 3.125rem;
}

#client-page .bottom-margin {
  margin-bottom: 3.125rem;
}

.coloured-image-box {
  text-align: center;
  padding: 3.125rem 0;
}

.coloured-image-box.telenor-satellite {
  background: #2D28CD;
}

.coloured-image-box.brimstone {
  background: #C42127;
}

.coloured-image-box.corvidae {
  background: #1c164e;
}

.coloured-image-box.trulawn {
  background: #013930;
}

.coloured-image-box img {
  max-width: 80%;
  margin: 0 auto;
}

/* Small only (> 639px) */
@media screen and (max-width: 39.9375em) {
  #homepage h1 {
    font-size: 83.33px;
    line-height: 76.33px;
  }

  .large-h1 {
    display: none;
  }

  .work h2 {
    margin-bottom: -20px;
  }

  .work h3 {
    font-size: 3.014rem;
  }

  #work h1 {
    font-size: 3.617rem;
    line-height: 1;
  }

  #work .work-gallery h2 {
    font-size: 3.014rem;
  }

  .flickity-page-dots {
    bottom: -55px;  
  }

  .work-gallery a {
    margin-bottom: 1.255rem;
  }

 .grid-margin-y.addmargin {
    margin-top: 0;
    margin-bottom: 0;
  }

  #client-page .content-box p.no-grid-y {
    margin-bottom: 2.5rem;
  }
}

/* Medium and up (640px >) */
@media screen and (min-width: 40em) {  
  h1, .has-h1-font-size {
    font-size: 6.25rem;
    line-height: 5.625rem;
  }

  .ticker, .ticker2 {
    font-size: 90px;
  }

  .ticker sup, .ticker2 sup {
    font-size: 50px;
  }

  .work h2 {
    margin-bottom: -25px;
  }

  #work .work-gallery h2 {
    font-size: 4.34rem;
  }

  .copyright {
    text-align: right;
  }

  #download-arrow #Line_1, #download-arrow #Path_1 {
    stroke: #1E35FF;
  }

  .header-download-text {
    fill: #1E35FF;
    -webkit-filter: drop-shadow( 1px 1px 0 rgba(255, 255, 255, 1));
    filter: drop-shadow( 1px 1px 0 rgba(255, 255, 255, 1));
  }

  #rotatingText {
    width: 200px;
    height: 200px;
  }
}

/* Medium only (640px > 1023px) */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
  #homepage h1 {
    font-size: 120px;
    line-height: 110px;
  }

  .logo {
    width: 100px;
    height: 45px;
  }

  .large-h1 {
    display: none;
  }

  #homepage section {
    min-height: 853px;
  }

  .header-title-text {
    width: 430px;
  }

  .header-text {
    top: 430px;
  }

  .header-photo {
    height: 52svh;
  }

  .header-download {
    left: inherit;
    right: 0;
  }

  .grid-margin-y.addmargin {
    margin-top: 0;
    margin-bottom: 0;
  }

  #client-page .content-box p.no-grid-y {
    margin-bottom: 2.5rem;
  }
}

/* Large and up (1024px >) */
@media screen and (min-width: 64em) {
  #homepage h1 {
    font-size: 110px;
    line-height: 105px;
  }

  h2, .has-h2-font-size {
    font-size: 5.208rem;
  }

  .logo {
    width: 120px;
    height: 54px;
  }

  .bar1, .bar3 {
    width: 80px;
    margin: 6px 0;
  }

  .category-box {
    padding: 9px 12px;
    font-size: 0.875rem;
  }

  .change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-5px, 6px);
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .change .bar3 {
    -webkit-transform: rotate(45deg) translate(-5px, -6px);
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .invis {
    width: 80px;
    margin: 6px 0;
  }

  .small-h1 {
    display: none;
  }

  .header-title-text {
    width: 970px;
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -42%;
    margin-top: 0;
  }

  .header-text {
    top: inherit;
    left: inherit;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 270px;
    display: inline;
  }

  .header-photo {
    height: 75svh;
    background-size: contain;
  }

  .ticker2 {
    margin-bottom: 7.5rem;
  }

  .about p {
    margin-bottom: inherit;
  }

  .gallery-cell {
    width: 45%;
  }

  #client-page section {
    padding: 3.75rem 0;
  }

  #client-page .content-box p {
    margin-bottom: 6.25rem;
  }

  #client-page .top-margin {
    margin-top: 7.5rem;
  }

  #client-page .bottom-margin {
    margin-bottom: 7.5rem;
  }

  .coloured-image-box {
    padding: 10.625rem 0;
  }

  .coloured-image-box img {
    max-width: 60%;
  }

  #work .work-gallery h2 {
    margin-bottom: 6.25rem;
  }

}

/* Large only (1024px > 1439px) */
@media screen and (min-width: 64em) and (max-width: 89.9375em) {
  .ticker, .ticker2 {
    font-size: 110px;
  }

  .ticker sup, .ticker2 sup {
    font-size: 60px;
  }
}

/* Extra Large and up (1440px >) */
@media screen and (min-width: 90em) {
  #homepage h1, #homepage .has-h1-font-size, #contact .has-h1-font-size {
    margin-top:165px;
    font-size: 158px;
    line-height: 145px;
  }

  .contact .has-h1-font-size {
    margin-top: 100px !important;
  }

  .ticker, .ticker2 {
    font-size: 158px;
  }

  .ticker sup, .ticker2 sup {
    font-size: 90px;
  }

  .ticker__content, .ticker__content2 {
    gap: 3rem;
  }

  #work h1 br {
    display: inline;
  }

  .work .work-gallery h2 {
    margin-bottom: -40px;
  }

  .grid-container {
    max-width: 80%;
  }

  .header-title-text {
    width: 1400px;
    translate: -50% -70%;
  }

  .header-photo {
    height: 80svh;s
  }

  .header-text {
    width: 330px;
  }

  .about {
    font-size: 1.125rem;
    padding: 20vh 0;
  }

  #client-page p {
    font-size: 22px;
  }
}

/* Header Photo Height Fix - Landscape Mobile (> 639px) */
@media screen and (max-height: 39.9375em) {
  .header-photo {
    height: 25rem;
  }

  #homepage section:nth-child(3), #homepage section:last-of-type {
    min-height: initial;
  }

  .flickity-page-dots {
    bottom: -20px;
  }
}