
/* CSS Variables */
:root {
  --default-font:
    "FG Futurist", "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Colors */
  --main-color: #ff7518;
  --whitest: #ffffff;
  --blackest: #000000;
  --manteca: #f5f5dc;

  --mint: #1ba165;
  --petrol-blue: #0a6dca;
  --gold-yellow: #ffb700;
  --terracotta-dark: #ad4025;
  --bubblegum: #F45B69;
  --teal: #40BCD8;

  --graphite: #596275;

  --black-50: #00000080;
  --black-20: #00000033;

  /* Font sizes */

  /* — Navegación — */
  --fs-nav: clamp(1.25rem, 3vw, 2rem);
  /* sidebar desktop */
  --fs-nav-mobile: 7.5vw;
  /* sidebar mobile <768px */
  --fs-nav-tablet: clamp(2rem, 4vw, 3rem);
  /* sidebar tablet 768px–1024px */

  /* — Headings — */
  --fs-heading: clamp(1.85rem, 4vw, 2.75rem);
  /* h1 de cada pestaña y página de proyecto */
  --fs-h1-mobile: clamp(1.5rem, 5vw, 2.5rem);
  /* h1 en mobile, override del anterior */
  --fs-heading-tile: clamp(1.75rem, 3vw, 3rem);
  /* h2 dentro de tiles brand development */
  --fs-hover-name: clamp(1.25rem, 2vw, 1.65rem);
  /* h2 nombre de marca en hover overlay */

  /* — Cuerpo de texto — */
  --fs-tile-text: clamp(1rem, 1.5vw, 1.25rem);
  /* texto en overlays, tags, footer, project meta */
  --fs-tile-body: clamp(1.25rem, 2vw, 1.75rem);
  /* texto largo en tiles tipo texto */
  --fs-gallery-text: clamp(1rem, 2.5vw, 1.25rem);
  /* texto en celdas de color en galería */

  /* — Etiquetas y meta — */
  --fs-meta-label: clamp(0.75rem, 1vw, 0.85rem);
  /* etiquetas pequeñas: año, tipo, breadcrumb */
  --fs-caption: clamp(0.75rem, 1vw, 1rem);
  /* pie de foto y version label */

  /* — Elementos UI — */
  --fs-back-arrow: clamp(2rem, 3vw, 3.25rem);
  /* flecha del botón volver */
  --fs-back-label: clamp(1rem, 1.5vw, 1.25rem);
  /* texto del botón volver */
  --fs-arrow: clamp(7rem, 7vw, 8rem);
  /* flecha decorativa en tiles */
  --fs-cursor: clamp(2rem, 3vw, 3rem);
  /* cursor gooey animado */

  /* Easing */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Z-index scale */
  --z-tile: 10;
  --z-tile-overlay: 20;
  --z-tile-text: 21;
  --z-overlay: 5000;
  --z-option: 2001;
  --z-content: 4000;
  --z-sidebar: 6000;
  --z-toggle: 9999;
}

/* =============================================
   Bootstrap replacement — utilidades nativas
   ============================================= */

/* Normalize — reemplaza reboot de Bootstrap */
*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: underline;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

blockquote {
  margin: 0 0 1rem;
}

figure {
  margin: 0 0 1rem;
}

svg {
  vertical-align: middle;
}

iframe {
  border: 0;
}

button {
  border-radius: 0;
  font: inherit;
  -webkit-appearance: button;
}

/* Headings reset — reemplaza reboot de Bootstrap */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  font-size: inherit;
}

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

/* row */
.row {
  display: flex;
  flex-wrap: wrap;
}

/* col-auto — ancho determinado por contenido */
.col-auto {
  flex: 0 0 auto;
  width: auto;
}

/* Layout */
.layout-root {
  width: 100%;
  box-sizing: border-box;
}

.layout-row {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.col {
  flex: 1 1 0%;
  min-width: 0;
}

.container-fluid,
.container {
  width: 100%;
  box-sizing: border-box;
}

/* Sidebar inner */
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.logo-row {
  display: flex;
  width: fit-content;
}

.sidebar-tabs {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-bottom {
  margin-top: auto;
}

.sidebar-contacts {
  margin-bottom: 1rem;
}

/* Flex */
.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.d-none {
  display: none !important;
}

.flex-column {
  flex-direction: column;
}

.flex-grow-1 {
  flex-grow: 1;
}

.h-100 {
  height: 100%;
}

.w-100 {
  width: 100%;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-start {
  justify-content: flex-start;
}

.align-items-baseline {
  align-items: baseline;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.mt-auto {
  margin-top: auto;
}

/* Buttons — font-size y line-height exactos de Bootstrap 5.3.3 */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  vertical-align: middle;
  -webkit-user-select: none;
  user-select: none;
}

.btn-link {
  text-decoration: none;
  color: inherit;
  padding: 0;
}

.text-start {
  text-align: left;
}

/* Spacing */
.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.pt-5 {
  padding-top: 3rem;
}

.pb-5 {
  padding-bottom: 3rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.p-0 {
  padding: 0 !important;
}

/* Typography */
.fw-light {
  font-weight: 300 !important;
}

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

/* display-5: line-height exacto de Bootstrap; font-size ya overrideado más abajo */
.display-5 {
  line-height: 1.2;
}

/* Misc */
.position-relative {
  position: relative;
}

.cursor-pointer {
  cursor: pointer;
}

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

.fw-bold,
strong {
  font-weight: 500 !important;
}

/* Base Styles */
html {
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  font-family: var(--default-font);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--manteca);
  color: var(--blackest);
}

@media (min-width: 1920px) {
  .container-fluid {
    max-width: 1920px;
    margin-left: 0;
  }
}

.logo {
  position: relative;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
  bottom: -1px;
  position: relative;
}

.guide-h-double-100 {
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
  width: 200vw;
  height: 100%;
  position: absolute;
  left: -100%;
  top: 0;
}

.guide-v-double-100 {
  border-right: 1px solid var(--graphite);
  border-left: 1px solid var(--graphite);
  height: 60vh;
  width: 100%;
  position: absolute;
  top: -10%;
}

@media (min-width: 1025px) {

  :root:not(.safari-browser) .guide-h-double-100,
  :root:not(.safari-browser) .guide-v-double-100 {
    filter: url(#pencil);
  }
}

.guide-v-short {
  border-right: 1px solid var(--graphite);
  border-left: 1px solid var(--graphite);
  height: 200%;
  width: calc(100% - 0rem);
  position: absolute;
  top: -50%;
  z-index: var(--z-overlay);
}

/* Tiles — shared base */
.tile,
.tile-xl {
  position: relative;
  overflow: hidden;
  background-color: var(--manteca);
  border: 1px solid var(--graphite);
}

.tile {
  width: 100%;
  height: 12.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-tile);
}

.tile.tile-text {
  align-items: flex-start;
  box-sizing: border-box;
  cursor: default;
  height: 100%;
  flex: 1;
}

.tile-text-content {
  padding: 2rem;
  font-size: var(--fs-tile-body);
  font-weight: 400;
  line-height: 1.2;
  color: var(--blackest);
  margin: 0;
}

.tile-text-image {
  height: 1.25rem !important;
  width: auto !important;
}

.tile-xl {
  height: calc(25rem + 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tile img:not(.logo-sized) {
  max-height: 60%;
  max-width: 60%;
  display: block;
}

.tile-xl img:not(.logo-sized) {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Tile Panels */
.tile:not(.tile-xl) {
  cursor: pointer;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blackest);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.open span.dot-hide {
  opacity: 0 !important;
  transition: none !important;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--black-50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s var(--ease-out),
    visibility 0.25s var(--ease-out);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.5s var(--ease-out),
    visibility 0.5s var(--ease-out);
}

/* Links */
.link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.link:hover,
.link:focus,
.link:active {
  color: var(--main-color);
}

/* Mobile Styles */
@media (max-width: 767px) {
  .mobile-menu-toggle-container {
    top: 1.25rem;
  }

  .nav-button,
  .contact-link,
  .lang-selector {
    font-size: var(--fs-nav-mobile) !important;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .sidebar-nav-btn {
    min-height: 2.75rem;
  }


  #lang-es,
  #lang-en {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .tile {
    height: 12.5rem;
  }

  .tile-xl {
    height: 25rem;
  }



  footer {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .brand-grid.mb-5 {
    margin-bottom: 1rem !important;
  }

  .sidebar-container {
    height: auto;
    min-height: fit-content;
  }

  .tab-intro h1 {
    font-size: var(--fs-h1-mobile);
  }
}

/* Sidebar Nav Buttons */
.sidebar-nav-btn {
  width: fit-content !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
  position: relative;
  padding-bottom: 0.1875rem;
}

.sidebar-nav-btn::after {
  content: "";
  position: absolute;
  bottom: -0.1rem;
  left: 0;
  width: 0;
  height: 0.25rem;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.sidebar-nav-btn:hover::after,
.sidebar-nav-btn.active::after {
  width: 100%;
}

/* Sidebar */
.sidebar-container {
  min-width: 25rem;
  height: 100vh;
  background-color: var(--manteca);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-sidebar);
  border-right: 1px solid var(--graphite);
  overflow: hidden;
}

@media (min-width: 1366px) {

  .mobile-menu-toggle-container,
  .mobile-logo {
    display: none !important;
  }

  .sidebar-container {
    border-right: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sidebar-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: var(--graphite);
    filter: url(#pencil);
  }

  .content-area {
    margin-left: 25.5rem;
    margin-right: 1rem;
  }

  #brand-creation-grid .tile:hover .logo-sized {
    transform: scale(1.05);
    transition: transform 0.2s var(--ease-out);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {

  .nav-button,
  .contact-link,
  .lang-selector {
    font-size: var(--fs-nav-tablet) !important;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .sidebar-nav-btn {
    min-height: 2.75rem;
  }

  #sidebar .d-flex.flex-column.gap-2 {
    gap: 1.5rem !important;
  }

  #lang-es,
  #lang-en {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 1024px) {

  .option::after,
  .sidebar-nav-btn::after {
    display: none;
  }

  #lang-es::after,
  #lang-en::after {
    display: block;
  }
}

@media (max-width: 1365px) {
  .sidebar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-right: none;
    box-shadow: none;
    padding-left: 1rem;
    padding-right: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
  }

  .sidebar-container.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  }

  .content-area {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .content-area .d-block.d-lg-none {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Nav / Contact / Lang */
.nav-button,
.contact-link,
.lang-selector {
  color: var(--blackest) !important;
  text-decoration: none;
  font-size: var(--fs-nav);
}

.contact-link {
  position: relative;
  width: fit-content !important;
  max-width: fit-content !important;
  display: inline-block !important;
  padding-bottom: 0.1875rem;
}

.contact-link::after {
  content: "";
  position: absolute;
  bottom: 0.1rem;
  left: 0;
  width: 0;
  height: 0.25rem;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.contact-link:hover::after {
  width: 100%;
}

.nav-button {
  text-transform: lowercase;
}

.lang-selector {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--fs-nav);
  font-weight: inherit;
  color: inherit;
}

/* Language underlines */
#lang-en,
#lang-es {
  position: relative;
  padding-bottom: 0.1875rem;
}

#lang-en::after,
#lang-es::after {
  content: "";
  position: absolute;
  bottom: 0.1rem;
  left: 0;
  width: 0;
  height: 0.25rem;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

#lang-en.active::after,
#lang-es.active::after,
#lang-en:hover::after,
#lang-es:hover::after {
  width: 100%;
}

#lang-en.active,
#lang-es.active {
  color: var(--main-color);
  cursor: default;
}

.option {
  z-index: var(--z-option);
  position: relative;
  cursor: pointer;
  padding-bottom: 0.1875rem;
}

.option::after {
  content: "";
  position: absolute;
  bottom: 0.1rem;
  left: 0;
  width: 0;
  height: 0.25rem;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.option:hover::after {
  width: 100%;
}

/* Content Area */
.content-area {
  z-index: var(--z-content);
  position: relative;
  background-color: var(--manteca);
  transition: margin-left 0.3s ease, opacity 0.5s ease;
}

.content-area.fading {
  opacity: 0;
}

.project-description {
  font-size: var(--fs-tile-text);
}

.tab-intro {
  padding-top: 2.75rem;
  padding-bottom: 3rem;
}

.project-title {
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 500;
  letter-spacing: -1px;
}

.project-back-arrow {
  height: 0.9em;
  width: auto;
}

.project-header {
  padding-top: 2.75rem;
  padding-bottom: 3rem;
}

.project-back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: inherit;
  text-decoration: none;
  font-weight: 300;
  line-height: 1;
}

.project-back-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.4s ease;
}

.project-back:hover .project-back-inner {
  transform: translateX(-0.75rem);
}

.project-back-arrow-large {
  font-size: var(--fs-back-arrow);
  line-height: 1;
  flex-shrink: 0;
}

.project-back-label {
  font-size: var(--fs-back-label);
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s ease;
  margin-bottom: 0.4rem;
}

.project-back:hover .project-back-label {
  max-width: 6rem;
}

.mobile-menu-toggle-container {
  position: fixed;
  top: 3.375rem;
  right: 1rem;
  z-index: var(--z-toggle);
}

/* Brand Creation hover */
#brand-creation .tile,
#brand-creation .tile-xl {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.brand-hover-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--main-color);
  opacity: 0.95;
  clip-path: circle(0% at 0% 0%);
  transition: clip-path 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: var(--z-tile-overlay);
  pointer-events: none;
}

.brand-hover-text {
  position: absolute;
  inset: 0;
  color: var(--blackest);
  font-size: var(--fs-tile-text);
  line-height: 1.25;
  font-weight: 300;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease 0s;
  z-index: var(--z-tile-text);
  padding: 2rem;
  box-sizing: border-box;
}

.brand-hover-name {
  font-weight: 500;
  font-size: var(--fs-hover-name);
  margin: 0 0 0.75rem 0;
  display: block;
  line-height: 1.25;
}

.brand-hover-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.tile:not(.tile-xl) .brand-hover-meta {
  margin-bottom: 1rem;
}

.brand-hover-worktype,
.brand-hover-year {
  font-size: var(--fs-meta-label);
  font-weight: 400;
  text-transform: uppercase;
}

.pd-tile-year {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: var(--fs-meta-label);
  font-weight: 400;
  z-index: var(--z-tile-text);
}

.brand-hover-tags,
.brand-hover-industry {
  display: block;
  font-size: var(--fs-tile-text);
  font-weight: 300;
}

.brand-hover-tags {
  margin-bottom: 0.75rem;
}

#brand-creation .tile-xl .brand-hover-text {
  font-size: var(--fs-tile-text);
}

#brand-creation .tile:hover .brand-hover-overlay,
#brand-creation .tile-xl:hover .brand-hover-overlay {
  clip-path: circle(150% at 0% 0%);
}

/* todos los tiles de brand-creation: hover manejado por GSAP (hover-gsap.js) */
#brand-creation-grid .tile .brand-hover-overlay,
#brand-creation-grid .tile:hover .brand-hover-overlay {
  transition: none;
  clip-path: unset !important;
}

#brand-creation-grid .tile .brand-hover-text,
#brand-creation-grid .tile:hover .brand-hover-text {
  transition: none !important;
  opacity: unset;
}

.logo-sized {
  max-width: var(--logo-size);
  max-height: var(--logo-size);
  width: 100%;
  height: auto;
  transition: transform 0.2s var(--ease-out);
}

#brand-development-grid .tile,
#brand-development-grid .tile-xl {
  align-items: stretch;
  justify-content: stretch;
}

#brand-development-grid .tile img,
#brand-development-grid .tile-xl img {
  position: relative;
  z-index: var(--z-tile-text);
}

.brand-dev-arrow {
  font-size: var(--fs-arrow);
  line-height: 1;
  color: var(--blackest);
  position: relative;
  z-index: var(--z-tile-text);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.brand-dev-tool-icon {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  opacity: 0.6;
}

#brand-development-grid .tile:hover .brand-dev-arrow,
#brand-development-grid .tile-xl:hover .brand-dev-arrow {
  opacity: 1;
  color: var(--whitest);
}

#product-design-grid .tile .p-2rem,
#product-design-grid .tile-xl .p-2rem {
  position: relative;
  z-index: var(--z-tile-text);
}

#product-design-grid .tile:hover .brand-dev-arrow,
#product-design-grid .tile-xl:hover .brand-dev-arrow {
  opacity: 1;
}

@media (max-width: 1024px) {
  #product-design-grid .brand-dev-arrow {
    opacity: 1;
  }

  #brand-development-grid .brand-dev-arrow {
    opacity: 1;
    color: var(--whitest);
  }

  .active-client-badge {
    display: none;
  }
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.brand-grid-item {
  min-width: 0;
  position: relative;
}

.brand-grid-shell {
  position: relative;
}

.brand-grid-item.span-4 {
  grid-column: span 4;
}

.brand-grid-item.span-6 {
  grid-column: span 6;
}

.brand-grid-item.span-8 {
  grid-column: span 8;
}

.brand-grid-stack {
  display: grid;
  gap: 1.5rem;
  height: 100%;
}

.brand-grid-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.brand-grid-logo-wrap.responsive-padding {
  padding: 2rem;
}

.brand-grid-logo-wrap.multi-logo {
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-grid-logo-wrap img:not(.logo-sized) {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 576px) {
  .brand-grid-logo-wrap.responsive-padding {
    padding: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .brand-grid-item.span-4 {
    grid-column: span 1;
  }

  .brand-grid-item.span-6 {
    grid-column: span 1;
  }

  .brand-grid-item.span-8 {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .brand-grid-item.span-4,
  .brand-grid-item.span-6,
  .brand-grid-item.span-8 {
    grid-column: span 1;
  }
}

.tile-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
  z-index: 0;
  pointer-events: none;
}

/* Tile Background Image */
.tile-bg-image {
  position: relative;
}

.tile-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1.25rem;
  z-index: 0;
}

.tile-bg-image .brand-grid-logo-wrap,
.tile-has-video .brand-grid-logo-wrap {
  position: relative;
  z-index: 2;
}

/* Project Gallery — Grid */
.project-gallery-embed {
  display: block;
  position: relative;
}

.project-gallery-embed .guide-v-double-100 {
  height: 101%;
  top: -0.5%;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.project-gallery-item {
  position: relative;
  box-sizing: border-box;
  border: 1px solid var(--graphite);
  background-color: var(--manteca);
  margin: 0;
}

.project-gallery-item.gallery-span-3 {
  grid-column: span 3;
}

.project-gallery-item.gallery-span-4 {
  grid-column: span 4;
}

.project-gallery-item.gallery-span-6 {
  grid-column: span 6;
}

.project-gallery-item.gallery-span-12 {
  grid-column: span 12;
}

.project-gallery-item .guide-h-double-100 {
  top: -1px;
  bottom: -1px;
  height: auto;
  z-index: 0;
}

.project-gallery-item .guide-v-double-100 {
  left: -1px;
  right: -1px;
  width: auto;
  z-index: 0;
}

.project-gallery-item img,
.project-gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.project-gallery-item .gallery-video {
  width: calc(100% - 2rem);
  margin: 1rem;
  border-radius: 0.75rem;
  border: 10px solid var(--blackest);
  box-sizing: border-box;
}

.project-gallery-item figcaption {
  font-size: var(--fs-caption);
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--graphite);
  background: var(--manteca);
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery-item.gallery-span-3,
  .project-gallery-item.gallery-span-4,
  .project-gallery-item.gallery-span-6,
  .project-gallery-item.gallery-span-12 {
    grid-column: span 1;
  }
}

.gallery-tablet-spacer {
  display: none;
}

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

  .project-gallery-item.gallery-span-3,
  .project-gallery-item.gallery-span-4,
  .project-gallery-item.gallery-span-6 {
    grid-column: span 1;
  }

  .project-gallery-item.gallery-span-12 {
    grid-column: span 2;
  }

  .gallery-tablet-spacer {
    display: block;
    grid-column: span 1;
  }

  .project-gallery-item.gallery-item-text {
    align-self: auto;
  }
}

.project-gallery-item.gallery-item-text {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.project-masonry-color-text {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.5rem;
  font-size: var(--fs-gallery-text);
  font-weight: 300;
  line-height: 1.2;
  color: var(--blackest);
}

.project-masonry-text-logo {
  display: block;
  max-height: 3rem;
  width: auto !important;
  max-width: 60%;
  padding: 1.75rem 1.75rem 0;
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-right: auto;
}

.pixel-grid {
  border-radius: 1.25rem;
  overflow: hidden;
}

#brand-development-grid h2,
#brand-development-grid .d-flex.gap-2 {
  color: var(--whitest);
  position: relative;
  z-index: var(--z-tile-text);
}

#brand-development-grid h2 {
  font-size: var(--fs-heading-tile);
}

/* Gooey cursor */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  font-size: var(--fs-cursor);
  line-height: 1;
  color: var(--main-color);
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
  * {
    cursor: none !important;
  }
}

.brand-hover-image {
  display: block;
  max-width: 50%;
  max-height: 3rem;
  object-fit: contain;
  margin-top: 1rem;
}

.project-loader {
  position: absolute;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--manteca);
  transition: opacity 0.5s ease;
}

.project-loader.dismiss {
  opacity: 0;
  pointer-events: none;
}

.project-loader-dot {
  width: 2rem;
  height: 2rem;
  background: var(--blackest);
  animation: loader-blink 1s ease-in-out infinite;
}

@keyframes loader-blink {

  0%,
  100% {
    opacity: 0.15;
  }

  50% {
    opacity: 1;
  }
}

.intro-arrow {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.p-2rem {
  padding: 2rem;
}

.tab-heading {
  font-size: var(--fs-heading);
}

@media (min-width: 1200px) {
  .display-5 {
    font-size: var(--fs-heading-tile);
  }
}

footer>div {
  position: relative;
  z-index: var(--z-content);
  background: var(--manteca);
}

#footer-quote,
#footer-author {
  font-size: var(--fs-tile-text);
}

#footer-author {
  font-weight: 300;
}

.project-meta {
  font-size: var(--fs-tile-text);
  font-weight: 300;
}

.project-breadcrumb {
  font-size: var(--fs-meta-label);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--blackest);
}

.active-client-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: var(--fs-meta-label);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--whitest);
  background: none;
  padding: 0;
  z-index: var(--z-tile-text);
  pointer-events: none;
  opacity: 1;
  line-height: 1.2;
  text-align: right;
}

.version-label {
  font-size: var(--fs-caption);
  opacity: 0.45;
}