/* GLOBAL STYLES ----------------------------------------------------------------------------------------------*/

html {
  scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-alt);
    font-family: var(--font-primary);
    color: var(--color-text);
    font-size: var(--text-size-paragraph);
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0em;
    line-height: 1.6em;
    text-transform: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

a {
  color: var(--color-text);
  text-decoration: none;
}

a:visited {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-text);
  text-decoration: none;
  outline: none;
}

input[type="submit"] {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition-default);
}

input[type="submit"]:hover {
  background-color: var(--color-accent-dark);
}



/* HEADER STYLES ----------------------------------------------------------------------------------------------*/

.c-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-grey-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  padding: 0 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  /* box-shadow: 0 1px 3px rgba(0,0,0,0.1); */
}

.admin-bar .c-header {
  top: 2rem;
}

.c-header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--width-full);
  margin: 0 auto;
  /* position: relative; */
}

.c-header__logo {
  position: absolute;
  width: 100%;
  z-index: 2;
}

.c-header__logo img {
  max-height: 48px;
  display: block;
}

.c-header__logo .site-title {
  min-height: 2.8rem;
  margin: 0;
  font-size: 1.6em;
  text-align: center;
}

.c-header__logo .site-title a {
  color: var(--color-black);
  font-family: var(--font-sketch2);
  font-weight: 400;

}
.c-header__logo .site-title a:hover {
  font-family: var(--font-sketch3);
}

.c-header__nav {
  display: flex;
}

ul.c-header__menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
  gap: 2.2rem;
  z-index: 998;
}

.c-header__menu li a {
  font-family: var(--font-sketch1);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  margin: 0.8rem 0;
}

/* Responsive Breakpoints */

@media (max-width: 767.98px) {
  .c-header {
    padding: 0.4rem 1.2rem;
  }
  .c-header__inner {
    justify-content: left;
  }
  .c-header__logo {
    position: relative;
    text-align-last: left;
  }
}



/* HAMBURGER MENU ----------------------------------------------------------------------------------------------*/

.c-header__menu-hamburger {
  display: inline-block;
  position: relative;
  width: 24px;
  height: 20px;
  margin-left: auto;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 999;
}

/* Only top and bottom bars using pseudo-elements */
.c-header__menu-hamburger::before,
.c-header__menu-hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary, #333);
  transition: var(--transition-default);
  border-radius: 1px;
}

.c-header__menu-hamburger::before {
  top: 6px;
}

.c-header__menu-hamburger::after {
  top: 14px;
}

/* Transform to X when toggled */
.c-header__nav.toggled .c-header__menu-hamburger::before {
  transform: rotate(45deg);
  top: 10px;
}

.c-header__nav.toggled .c-header__menu-hamburger::after {
  transform: rotate(-45deg);
  top: 10px;
}

/* Responsive Breakpoints */

@media (max-width: 767.98px) {
  .c-header__nav {
    position: inherit;
  }
  ul.c-header__menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    padding: 0 1.2rem;
    gap: .4rem;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-default);
  }
  .c-header__nav.toggled ul.c-header__menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .c-header__menu li a:hover {
    transform: translateX(0.4rem) translateY(0);
  }
}

@media screen and (min-width: 767.98px) {
  .c-header__menu-hamburger {
    display: none;
  }
}



/* FOOTER STYLES ----------------------------------------------------------------------------------------------*/

.c-footer {
  padding: 1rem 0 4rem 0;
}

.c-footer__inner {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
}

.c-footer__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: var(--width-full);
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
}

ul.c-footer__social-links {
  flex-direction: row;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
}

li.c-footer__social-item {
  display: flex;
  align-items: center;
}

a.c-footer__social-link {
  color: var(--color-black);
  font-size: 1.4rem;
  transition: var(--transition-default);
  cursor: pointer;
}

a.c-footer__social-link:hover,
a.c-footer__social-link:focus {
  color: var(--color-accent);
}



/* PAGE STRUCTURE ----------------------------------------------------------------------------------------------*/

.c-wrapper {
  padding: 4rem 2.6rem;
}

.site-main {
  max-width: var(--width-full);
  margin: 0 auto;
  padding: 0 0 4rem 0;
  color: var(--color-text);
}

.page-header {
  text-align: center;
}

.entry-title {
  font-family: var(--font-sketch2);
  font-size: 4em;
  font-weight: 400;
}

.c-sketching {
  transition: font-family 0.1s linear;
}

.c-layout__section {
	display: flex;
  flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 4rem;
	margin-bottom: 8rem;
}

.c-layout__section--reverse {
	flex-direction: row-reverse;
}

.c-layout__section--hero {
  max-width: var(--width-hero);
  text-align: center;
  margin: 0 auto 8rem auto;
  flex-direction: column;
}

.c-block {
  flex: 1;
  width: 100%;
}

.c-block--featured {
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.3, 0, 0.2, 1);
}

.c-block--featured.is-visible {
  transform: translateY(0);
  opacity: 1;
}



@media (max-width: 991.98px) {
  .c-layout__section {
    flex-direction: column;
    gap: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .c-wrapper {
    padding: 2rem 1.2rem;
  }
}



/* COMPONENTS ----------------------------------------------------------------------------------------------*/

/* Responsive YouTube Container */

.plyr__video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
  height: 0;
  overflow: hidden;
  background: var(--color-white);
  transform: scale(1.001);
}

.plyr__video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Local Video Wrapper */

.c-video-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: var(--border-radius);
	box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.c-video-wrapper video {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: var(--border-radius);
}



/* HOMEPAGE STYLES ----------------------------------------------------------------------------------------------*/

.p-hero__inner {
  max-width: var(--width-hero);
  text-align: center;
  margin: 0 auto;
}

.p-hero h2 {
  font-weight: 400;
}

.p-hero p {
  font-weight: 300;
}

.c-post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.c-post-grid__item {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-grey-100);
  overflow: hidden;
  position: relative;
}

.c-post-grid__thumb img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  overflow: hidden;
  transform: scale(1.01);
  width: 100%;
  height: auto;
  display: block;
  transition: all var(--transition-default);
  filter: contrast(0.9) blur(0);
}

.c-post-grid__item:hover img {
  filter: contrast(1.1) blur(0);
}

.c-post-grid__info {
  padding: 2rem 1.2rem 1.2rem 1.2rem;
}

.c-post-grid__title {
  font-family: var(--font-sketch2);
  font-size: 3.2rem;
  font-weight: 400;
  margin: 0;
}

.c-post-grid__tags {
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

/* Responsive Breakpoints */

@media (max-width: 991.98px) {
  .c-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .c-post-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}



/* YOUTUBE CHANNEL PAGE ----------------------------------------------------------------------------------------------*/

/* Banner */

.p-yt-channel__banner {
  background: var(--color-white) url('../img/youtube-top-banner.jpg') no-repeat center top / cover;
  height: 330px;
	width: 100%;
	display: block;
}

.p-yt-channel__page-title {
	font-size: 4rem;
	font-weight: 900;
	letter-spacing: -1px;
	margin-bottom: 1rem;
  line-height: 1em;
}

.p-yt-channel__page-subtitle {
	font-size: 1.4rem;
	color: var(--color-grey-600);
}

/* Sections */

.p-yt-channel__playlist-text {
	font-size: var(--text-size-paragraph);
	line-height: 1.6;
  margin-top: 1rem;
	margin-bottom: 2rem;
}

.p-yt-channel__btn {
	display: inline-block;
	padding: 1rem 2rem;
	background: black;
	color: var(--color-white);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: var(--border-radius);
	transition: all 0.3s ease;
}

.p-yt-channel__btn:hover,
.p-yt-channel__btn:active,
.p-yt-channel__btn:focus {
  color: var(--color-white);
	background: var(--color-accent);
}

.p-yt-channel__btn:visited {
  color: var(--color-white);
}

@media (min-width: 1399.98px) {
  .p-yt-channel__video {
    margin: 0 4rem 0 0;
  }
  .c-layout__section--reverse .p-yt-channel__video {
    margin: 0 0 0 4rem;
  }
}



/* PORTFOLIO STYLES ----------------------------------------------------------------------------------------------*/

.c-project__meta {
  margin-bottom: 4rem;
  max-width: var(--width-full);
  margin: 0 auto;
}

.c-project__meta-category a {
  font-weight: 600;
  color: var(--color-accent);
}

.c-project__meta-category a:hover {
  color: var(--color-primary);
}

.c-project__meta-separator {
  color: var(--color-grey-200);
}

.c-project__completion-date {
  line-height: 1em;
  margin-bottom: 0.8rem;
}

.c-project__meta-title {
  font-family: var(--font-sketch2);
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.8em;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.c-project__meta .c-project__meta-title {
  margin-top: 4.8rem;
}

.c-project__meta-tags {
  display: flex;
  flex-direction: row;
  gap: 0.4rem;
  letter-spacing: .08rem;
}

.c-project__meta-tags span a,
.p-yt-channel__vids {
  display: inline-block;
  background: var(--color-grey-200);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  line-height: 1em;
  font-weight: 400;
  padding: 0.4rem 0.8rem;
  transition: var(--transition-default);
}

.c-project__meta-tags span a:hover {
  background: var(--color-grey-300);
  color: var(--color-primary);
}

@media (max-width: 575.98px) {
  .c-project__meta-title {
    font-size: 3.2rem;
  }
}



/* PORTFOLIO PAGES ----------------------------------------------------------------------------------------------*/

/* Vincero */




.p-vincero .p-vincero-deadline img {
  margin: 0 auto;
  transform: translateY(0) rotate(-24deg);
}




.p-case-study__compare {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-top: 40px solid var(--color-black);
  border-bottom: 40px solid var(--color-black);
}

.p-case-study__compare-image-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio, adjust as needed */
}

.p-case-study__compare img {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* fill the container */
  object-fit: cover;
}

.p-case-study__compare-before {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.p-case-study__compare-after {
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
}

.p-case-study__compare-range {
  position: absolute;
  top: 0;
  left: 50%; /* start in the middle */
  width: 100%;
  height: 100%;
  background: transparent;
  -webkit-appearance: none;
  z-index: 3;
  cursor: ew-resize; /* horizontal drag */
}

.p-case-study__compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 100%;
  background: rgba(0, 150, 255, 0.5);
  border: 2px solid var(--color-secondary-blue);
  cursor: ew-resize;
  border-radius: 0;
  position: relative;
}

.p-case-study__compare-range::-moz-range-thumb {
  width: 24px;
  height: 100%;
  background: rgba(0, 150, 255, 0.5);
  border: 2px solid var(--color-secondary-blue);
  cursor: ew-resize;
  border-radius: 0;
}

/* optional: labels */
.p-case-study__compare-label {
  position: absolute;
  top: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: var(--border-radius);
  z-index: 4;
}

.p-case-study__compare-label--before {
  left: 10px;
}

.p-case-study__compare-label--after {
  right: 10px;
}







@media (min-width: 1399.98px) {
  .p-vincero-top-vid {
    margin: 0 0 0 4rem;
  }
}