/* VARIABLES ----------------------------------------------------------------------------------------------*/

@font-face {
  font-family: 'Nerfos Alt01';
  src: url('../fonts/nerfos-alt01.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nerfos Alt02';
  src: url('../fonts/nerfos-alt02.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Nerfos Alt03';
  src: url('../fonts/nerfos-alt03.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

:root {

    /* --- COLORS --- */

    /* Darkscale (Neutral / Deep UI) */
    --dgr-900:              hsl(0 0% 5%);    /* Deepest: Insets/Shadows */
    --dgr-800:              hsl(0 0% 9%);    /* Base: #171717 equivalent */
    --dgr-700:              hsl(0 0% 15%);   /* UI: Cards, buttons, headers */
    --dgr-600:              hsl(0 0% 20%);   /* Borders: Subtle dividers */
    --dgr-500:              hsl(0 0% 30%);
    --dgr-400:              hsl(0 0% 45%);   /* Muted Typography */
    --dgr-200:              hsl(0 0% 83%);   /* Main Body Text on Dark */
    --dgr-50:               hsl(0 0% 98%);   /* High Contrast / Titles */

    /* Light cool greyscale (Blue Steel Tint) */
    --gr-400:               hsl(189 19% 75%);
    --gr-300:               hsl(188 15% 81%);
    --gr-200:               hsl(190 18% 88%);
    --gr-100:               hsl(190 17% 94%);
    --gr-50:                hsl(180 9% 97%);

    /* Primary colors (Navy) */
    --color-primary:        hsl(214 44% 17%);
    --color-primary-light:  hsl(215 30% 32%);
    --color-primary-dark:   hsl(215 47% 11%);

    /* Accents */
    --acc-red:              hsl(353 76% 39%);
    --acc-red-light:        hsl(354 62% 54%);
    --acc-red-dark:         hsl(353 78% 28%);

    --acc-lime:             hsl(66 100% 50%);  /* "Acid" Lime */
    --acc-lime-dark:        hsl(66 100% 42%);

    --acc-cyan:             hsl(184 100% 50%); /* "Oxygen" Blue */
    --acc-cyan-dark:        hsl(184 100% 43%);

    --acc-orange:           hsl(18 86% 50%);   /* "Cyber" Orange */
    --acc-orange-dark:      hsl(18 89% 40%);

    --acc-amber:            hsl(42 100% 51%);  /* "Raptor" Amber */
    --acc-amber-dark:       hsl(42 100% 41%);


    /* --- TYPOGRAPHY --- */

    --text-size-paragraph: 1.15rem;
    --color-text:           var(--dgr-800);
    --color-text-light:     var(--dgr-400);

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Inter', sans-serif;
    --font-sketch1: 'Nerfos Alt01', sans-serif;
    --font-sketch2: 'Nerfos Alt02', sans-serif;
    --font-sketch3: 'Nerfos Alt03', sans-serif;


    /* --- LAYOUT & SPACING --- */

    --width-full: 1920px;
    --width-page: 1200px;
    --width-hero: 840px;
    --width-content: 768px;
    --width-sidebar: 404px;
    --container-padding: ;
    --gap: 14px;

    /* Backgrounds */
    --color-bg:           white;
    --color-bg-alt:       var(--gr-50);
    --color-bg-dark:      var(--color-primary);

    /* Borders */
    --color-border:       var(--gr-400);
    --color-border-light: var(--gr-100);
    --color-border-dark:  var(--color-primary-dark);
    --border-radius:      0.4rem;

    /* Transitions */
    --transition-default: 0.3s ease;


    /* --- BREAKPOINTS --- */
    --bp-xxl: 1400px;
    --bp-xl: 1200px;
    --bp-lg: 992px;
    --bp-sm: 768px;
    --bp-xs: 576px;


    /* --- TAG SYSTEM (Pastels) --- */

    --tag-default:          hsl(215 30% 32%);

    /* Design & Planning */
    --tag-prototyping:      hsl(78 51% 91%);
    --tag-ui-ux-design:     hsl(112 31% 85%);
    --tag-wireframing:      hsl(177 53% 67%);

    /* Media & Production */
    --tag-color-grading:    hsl(27 100% 90%);
    --tag-sound-design:     hsl(14 100% 86%);
    --tag-filming:          hsl(0 84% 89%);
    --tag-video-editing:    hsl(1 83% 81%);

    /* Web development */
    --tag-css:              hsl(168 64% 83%);
    --tag-javascript:       hsl(164 68% 93%);
    --tag-html:             hsl(187 75% 75%);
    --tag-front-end:        hsl(190 70% 61%);
}

@media (max-width: 575.98px) {
  
  :root {
    --text-size-paragraph: 1.2rem;
  }
}

/* GLOBAL STYLES ----------------------------------------------------------------------------------------------*/

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

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);
  font-weight: 500;
}

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(--acc-accent);
  color: var(--color-text-inverse);
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  transition: var(--transition-default);
}

input[type="submit"]:hover {
  background-color: var(--acc-accent-dark);
}

ul.c-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-left: 0;
  margin-bottom: 2.5rem;
}

ul.c-checklist > li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
}

ul.c-checklist > li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  background-color: var(--color-text);
  mask: url("assets/img/icons/icon-check-circle-sketch.svg") no-repeat center;
  -webkit-mask: url("../img/icons/icon-check-circle-sketch.svg") no-repeat center;
}

ul.c-checklist--check-circle > li:before {
  mask: url("assets/img/icons/icon-check-circle-sketch.svg") no-repeat center;
  -webkit-mask: url("../img/icons/icon-check-circle-sketch.svg") no-repeat center;
}

ul.c-checklist--cross-circle > li:before {
  mask: url("assets/img/icons/icon-cross-circle-sketch.svg") no-repeat center;
  -webkit-mask: url("../img/icons/icon-cross-circle-sketch.svg") no-repeat center;
}


/* HEADER STYLES ----------------------------------------------------------------------------------------------*/

.c-header {
  border-bottom: 1px solid var(--gr-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  padding: 0 26px;
  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 {
  margin: 0;
  font-size: 2.5rem;
  text-align: center;
}

.c-header__logo .site-title a {
  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: 500;
  color: var(--color-text);
  text-decoration: none;
  min-width: 86px;
  margin: 12px 0;
  transition: var(--transition-default);
}

/* Responsive Breakpoints */

@media (max-width: 767.98px) {
  .c-header {
    padding: 4px 12px;
  }
  .c-header__inner {
    justify-content: left;
  }
  .c-header__logo {
    position: relative;
    text-align-last: left;
  }
  .c-header__logo .site-title {
    font-size: 2rem;
    min-height: 36px;
  }
}



/* 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: white;
    padding: 0 12px;
    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(12px) 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: 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(--acc-red);
}



/* 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;
}

/* Section layout API:
 * Source order should be text block first, media block second.
 * - .c-layout__section + .c-layout__section--media-left  => media left on desktop
 * - .c-layout__section + .c-layout__section--media-right => media right on desktop
 * - .c-layout__section + .c-layout__section--hero        => centered stacked hero section
 */
 
.c-layout__section {
	display: flex;
  flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 4rem;
	margin-bottom: 8rem;
}

.c-layout__section--media-left {
  flex-direction: row-reverse;
}

.c-layout__section--media-right {
	flex-direction: row;
}

.c-layout__section--hero {
  max-width: var(--width-hero);
  text-align: center;
  margin: 0 auto 8rem auto;
  flex-direction: column;
  gap: 1rem;
}

.c-block {
  flex: 1;
  width: 100%;
}

.c-block--media {
  display: flex;
  justify-content: center;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.3, 0, 0.2, 1);
}

.c-block--media.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.c-block--media img {
	margin: 0 auto;
}

.c-layout__section h2 {
  font-family: 'Coming Soon';
  font-size: 2.6rem;
  line-height: 1.25em;
}

.c-layout__section img {
  display: block;
}




@media (max-width: 991.98px) {
  .c-layout__section {
    flex-direction: column;
    gap: 1.8rem;
  }
  .c-block {
    text-align: center;
  }
  .c-block > .c-checklist {
    text-align: left;
    width: min(100%, 34rem);
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .c-layout__section--hero,
  .c-layout__section {
    margin-bottom: 2rem;
  }
}

@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: 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 {
  width: 100%;
	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);
}




/* Portfolio Grid */

.c-post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.c-post-grid__item {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--gr-100);
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius);
}

.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:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 550ms ease,
    filter 700ms ease;
}

.c-post-grid__thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.c-post-grid__img--base {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 550ms ease, filter 700ms ease;
}

.c-post-grid__img--hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  filter: saturate(1.8) contrast(1.08) blur(5px);
  transform: scale(1.05);
  backface-visibility: hidden;
  will-change: opacity, filter, transform;
  transition:
    opacity 550ms ease,
    filter 850ms ease,
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.c-post-grid__item.has-hover-image:hover .c-post-grid__img--base {
  opacity: 0.12;
  filter: grayscale(0.35) contrast(0.9);
  transform: scale(1.02);
}

.c-post-grid__item.has-hover-image:hover .c-post-grid__img--hover {
  opacity: 1;
  filter: saturate(1) contrast(1) blur(0);
  transform: scale(1.01);
}

.c-post-grid__info {
  padding: 2rem 1.25rem 1rem 1.25rem;
}

.c-post-grid__title {
  font-family: var(--font-sketch2);
  font-size: 3.2rem;
  font-weight: 400;
  margin: 0 0 0.25rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gr-100);
}

.c-post-grid__category {
  font-size: 0.75rem;
}

@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);
  }
}




/*global portfolio tags*/
.c-post-grid__tags {
  display: block;
}

.c-post-grid__tags [class^="c-tag-"],
.c-project__meta-tags [class^="c-tag-"] {
  display: inline-block;
  line-height: 1em;
  font-weight: 600;
  background: white;
  color: hsl(from var(--btn-bg, var(--tag-default)) h calc(s * 1.2) calc(l * 0.25));
  border: 1px solid var(--gr-200);
  border-radius: 30px;
  margin-bottom: 4px;
  margin-right: 4px;
  transition: var(--transition-default);
}

.c-post-grid__tags [class^="c-tag-"]:last-child,
.c-project__meta-tags [class^="c-tag-"]:last-child {
  margin-right: 0;
}

.c-post-grid__tags [class^="c-tag-"] {
  font-size: 10px;
  padding: 8px 10px;
}

.c-tag-prototyping    { --btn-bg: var(--tag-prototyping); }
.c-tag-ui-ux-design   { --btn-bg: var(--tag-ui-ux-design); }
.c-tag-wireframing    { --btn-bg: var(--tag-wireframing); }
.c-tag-front-end      { --btn-bg: var(--tag-front-end); }
.c-tag-html           { --btn-bg: var(--tag-html); }
.c-tag-sass,
.c-tag-css            { --btn-bg: var(--tag-css); }
.c-tag-javascript     { --btn-bg: var(--tag-javascript); }
.c-tag-color-grading  { --btn-bg: var(--tag-color-grading); }
.c-tag-sound-design   { --btn-bg: var(--tag-sound-design); }
.c-tag-video-editing  { --btn-bg: var(--tag-video-editing); }

[class^="c-tag-"]:hover,
[class^="c-tag-"]:focus,
[class^="c-tag-"]:active {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
}



/* HOMEPAGE STYLES ----------------------------------------------------------------------------------------------*/

.home .p-hero__inner {
  max-width: var(--width-hero);
  text-align: center;
  margin: 0 auto;
}

.home .p-hero h1 {
  font-family: var(--font-sketch2);
  font-size: 4rem;
  line-height: 1.3em;
  margin-bottom: 0;
}

.home .p-hero h2 {
  font-family: 'Coming Soon';
  font-size: 1.8rem;
  line-height: 1.3em;
  margin-top: 0;
}

.home .p-hero p {
  font-weight: 200;
}



/* PORTFOLIO STYLES ----------------------------------------------------------------------------------------------*/

.c-project__meta {
  margin-bottom: 4rem;
  max-width: var(--width-full);
  font-size: 1.4rem;
  font-weight: 200;
  margin: 0 auto;
}

.c-project__meta-category a,
.c-post-grid__category a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc-red);
}

.c-project__meta-category a:not(:last-of-type)::after,
.c-post-grid__category a:not(:last-of-type)::after {
  content: "/";
  display: inline-block;
  margin: 0 8px;
  color: var(--gr-300);
  font-weight: 400;
  text-transform: none;
}

.c-project__meta-category a:hover,
.c-post-grid__category a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.c-project__meta-separator {
  color: var(--gr-200);
}

.c-project__completion-date {
  line-height: 1em;
  margin-bottom: 0.8rem;
}

.c-project__meta-title {
  font-family: var(--font-sketch2);
  font-size: 5rem;
  font-weight: 400;
  line-height: 0.8em;
  margin-top: 0;
  margin-bottom: 0.4rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gr-100);
}

.c-project__meta .c-project__meta-title {
  margin-top: 4.8rem;
}

.c-project__meta-tags {
  display: block;
}

.c-project__meta-tags [class^="c-tag-"] {
  font-size: 12px;
  padding: 8px 10px;
}

[class^="c-tag-"]:hover,
[class^="c-tag-"]:focus,
[class^="c-tag-"]:active {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
}

@media (max-width: 575.98px) {
  .c-project__meta-title {
    font-size: 3.2rem;
  }
}
