/* =========================================================
WEBMASTERG HOME
========================================================= */

.home {

width: 720px;
max-width: calc(100% - 20px);

margin: 14px auto 0;

display: grid;

grid-template-columns: 175px 1fr;

gap: 10px;

color: #111;

}



/* =========================================================
HOME HIDDEN DURING HEADER INTRO
========================================================= */

.home-hidden {

opacity: 0;

visibility: hidden;

pointer-events: none;

}

.home.home-visible {

visibility: visible;

pointer-events: auto;

animation:
homeAppear
.65s
cubic-bezier(.22,.8,.25,1)
forwards;

}

/* =========================================================
GENERAL
========================================================= */

.home a {

text-decoration: none;

}

.home-section-title {

height: 16px;

display: flex;

align-items: center;

padding-left: 7px;

color: #d5d8d9;

background:
linear-gradient(
90deg,
#25292b,
#0a0c0d
);

border: 1px solid #3b4144;

font-size: 7px;

letter-spacing: 1.5px;

}

/* =========================================================
SIDEBAR
========================================================= */

.home-sidebar {

min-width: 0;

}

/* =========================================================
PROFILE
========================================================= */

.home-profile {

border: 1px solid #353a3c;

background:
linear-gradient(
180deg,
#111516,
#050606
);

padding-bottom: 13px;

}

.home-photo {

width: 100%;

height: 212px;

overflow: hidden;

background: #020303;

}

.home-photo img {

width: 100%;

height: 100%;

display: block;

object-fit: cover;

filter:
grayscale(100%)
contrast(1.08);

opacity: .82;

}

.home-profile-name {

margin-top: 10px;

padding: 0 10px;

color: #d7dadb;

font-size: 13px;

letter-spacing: 2px;

}

.home-profile-sub {

padding: 4px 10px 0;

color: #555d61;

font-size: 6px;

letter-spacing: 1.5px;

}

.home-profile p {

padding: 0 10px;

color: #777d80;

font-size: 8px;

line-height: 1.65;

}

.home-contact {

display: block;

margin: 12px 10px 0;

padding: 5px;

text-align: center;

color: #aaa;

font-size: 6px;

letter-spacing: 2px;

border: 1px solid #444a4d;

background:
linear-gradient(
#25292b,
#080909
);

}

.home-contact:hover {

color: #fff;

border-color: #777;

}

/* =========================================================
SITE NEWS
========================================================= */

.home-news {

margin-top: 14px;

}

.news-item {

padding: 8px 4px;

border-bottom: 1px solid #3b4143;

color: #333;

font-size: 8px;

line-height: 1.35;

}

.news-date {

display: block;

margin-bottom: 2px;

color: #666d70;

font-size: 6px;

letter-spacing: 1px;

}

.news-text {

color: #777;

}

.home-rule {

height: 18px;

margin-top: 2px;

border-bottom: 1px solid #3b4143;

}

/* =========================================================
MAIN COLUMN
========================================================= */

.home-main {

min-width: 0;

}

/* =========================================================
SECTION BAR
========================================================= */

.home-bar {

height: 16px;

display: flex;

align-items: center;

justify-content: space-between;

padding: 0 7px;

color: #d5d8d9;

background:
linear-gradient(
90deg,
#25292b,
#080a0b
);

border: 1px solid #3b4144;

font-size: 7px;

letter-spacing: 1.5px;

}

.home-bar-code {

color: #626a6e;

font-size: 5px;

letter-spacing: 1px;

}

/* =========================================================
   FEATURED CREATIONS
   ========================================================= */

.featured {

  border:
    1px solid
    #343a3c;

  background:
    linear-gradient(
      180deg,
      #111415,
      #060707
    );

  padding-bottom: 13px;

}


.featured-grid {

  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap:
    15px 18px;

  padding:
    18px 14px 5px;

}


.featured-card {

  min-width: 0;

}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.featured-image {

  position: relative;

  display: block;

  height: 118px;

  overflow: hidden;

  border:
    1px solid
    #484e51;

  background: #020303;

}


.featured-image img {

  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  /* Estado normal: gris */

  filter:
    grayscale(100%)
    contrast(1.08);

  opacity: .76;

  transition:
    filter .4s ease,
    opacity .3s ease,
    transform .35s ease;

}


/* =========================================================
   HOVER — CREACIONES 1, 2 Y 3
   ========================================================= */

/*
   La imagen recupera su color cuando el cursor
   está sobre cualquier parte del pad.

   La creación #4 queda excluida.
*/

.featured-card:not(:nth-child(4)):hover
.featured-image img {

  filter:
    grayscale(0%)
    contrast(1.08);

  opacity: 1;

  transform:
    scale(1.04);

}


/* =========================================================
   CREACIÓN #4 — SIEMPRE GRIS
   ========================================================= */

/*
   La cuarta creación nunca recupera el color,
   incluso cuando el cursor está sobre su pad.
*/

.featured-card:nth-child(4)
.featured-image img {

  filter:
    grayscale(100%)
    contrast(1.08);

  opacity: .76;

}


/* =========================================================
   NUMBER
   ========================================================= */

.featured-number {

  position: absolute;

  top: 5px;

  right: 6px;

  color: #ddd;

  font-size: 6px;

  text-shadow:
    0 1px 3px
    #000;

}


/* =========================================================
   INFORMATION
   ========================================================= */

.featured-info {

  padding-top: 7px;

}


.featured-category {

  color: #555d60;

  font-size: 5px;

  letter-spacing: 1.5px;

}


.featured-info h2 {

  margin:
    5px 0;

  color: #c7cbcc;

  font-size: 9px;

  font-weight: normal;

  letter-spacing: 1px;

}


.featured-info a {

  color: #777f82;

  font-size: 6px;

  letter-spacing: 1px;

}


.featured-info a:hover {

  color: #fff;

}

/* =========================================================
CURRENT INFO
========================================================= */

.current-box {

margin-top: 10px;

border: 1px solid #343a3c;

background:
linear-gradient(
180deg,
#111415,
#060707
);

}

.current-content {

position: relative;

min-height: 105px;

padding: 15px;

}

.current-date {

margin-bottom: 7px;

color: #555d60;

font-size: 6px;

letter-spacing: 1.5px;

}

.current-text h2 {

margin: 0 0 8px;

color: #c6cacb;

font-size: 11px;

font-weight: normal;

letter-spacing: 1.5px;

}

.current-text p {

max-width: 400px;

margin: 0;

color: #777d80;

font-size: 8px;

line-height: 1.7;

}

.continue {

position: absolute;

right: 13px;

bottom: 12px;

color: #888f92;

font-size: 6px;

letter-spacing: 1px;

}

.continue:hover {

color: #fff;

}

/* =========================================================
LINKS
========================================================= */

.home-links {

margin-top: 10px;

border: 1px solid #343a3c;

background:
linear-gradient(
180deg,
#111415,
#060707
);

}

.link-list {

display: grid;

grid-template-columns:
repeat(2, 1fr);

}

.link-list a {

display: flex;

align-items: center;

gap: 9px;

padding: 10px;

color: #777d80;

font-size: 7px;

letter-spacing: 1px;

border-bottom: 1px solid #292e30;

}

.link-list a:nth-child(odd) {

border-right: 1px solid #292e30;

}

.link-list a span {

color: #4f575a;

font-size: 5px;

}

.link-list a:hover {

color: #fff;

background: #101314;

}

/* =========================================================
FOOTER
========================================================= */

.home-footer {

width: 720px;

max-width: calc(100% - 20px);

margin: 13px auto 30px;

text-align: center;

color: #3e4548;

font-size: 5px;

letter-spacing: 2px;

}

/* =========================================================
HOME REVEAL ANIMATIONS
========================================================= */

.home.home-visible .home-sidebar {

animation:
homeSlideLeft
.7s
cubic-bezier(.22,.8,.25,1)
.05s
both;

}

.home.home-visible .home-main {

animation:
homeSlideUp
.7s
cubic-bezier(.22,.8,.25,1)
.16s
both;

}

.home.home-visible .home-profile {

animation:
homeFade
.55s
ease-out
.12s
both;

}

.home.home-visible .home-news {

animation:
homeFade
.55s
ease-out
.28s
both;

}

.home.home-visible .featured {

animation:
homeFade
.55s
ease-out
.22s
both;

}

/* =========================================================
CREATIONS STAGGER
========================================================= */

.home.home-visible .featured-card {

animation:
creationAppear
.55s
cubic-bezier(.22,.8,.25,1)
both;

}

.home.home-visible
.featured-card:nth-child(1) {

animation-delay: .30s;

}

.home.home-visible
.featured-card:nth-child(2) {

animation-delay: .40s;

}

.home.home-visible
.featured-card:nth-child(3) {

animation-delay: .50s;

}

.home.home-visible
.featured-card:nth-child(4) {

animation-delay: .60s;

}

/* =========================================================
LOWER SECTIONS
========================================================= */

.home.home-visible .current-box {

animation:
homeFade
.55s
ease-out
.72s
both;

}

.home.home-visible .home-links {

animation:
homeFade
.55s
ease-out
.84s
both;

}

.home.home-visible .home-footer {

animation:
homeFade
.55s
ease-out
1s
both;

}

/* =========================================================
KEYFRAMES
========================================================= */

@keyframes homeAppear {

0% {

opacity: 0;


}

100% {

opacity: 1;


}

}

@keyframes homeFade {

0% {

opacity: 0;

transform:
  translateY(12px);


}

100% {

opacity: 1;

transform:
  translateY(0);


}

}

@keyframes homeSlideLeft {

0% {

opacity: 0;

transform:
  translateX(-18px);


}

100% {

opacity: 1;

transform:
  translateX(0);


}

}

@keyframes homeSlideUp {

0% {

opacity: 0;

transform:
  translateY(18px);


}

100% {

opacity: 1;

transform:
  translateY(0);


}

}

@keyframes creationAppear {

0% {

opacity: 0;

transform:
  translateY(20px)
  scale(.97);


}

100% {

opacity: 1;

transform:
  translateY(0)
  scale(1);


}

}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 600px) {

.home {

width: calc(100% - 20px);

grid-template-columns: 1fr;


}

.home-sidebar {

display: grid;

grid-template-columns:
  1fr 1fr;

gap: 10px;


}

.home-news {

margin-top: 0;


}

.home-photo {

height: 180px;


}

.featured-grid {

gap: 12px;

padding: 12px;


}

.featured-image {

height: 105px;


}

.link-list {

grid-template-columns: 1fr;


}

.link-list a:nth-child(odd) {

border-right: 0;


}

}

@media (max-width: 420px) {

.home-sidebar {

grid-template-columns: 1fr;


}

.featured-grid {

grid-template-columns: 1fr;


}

.featured-image {

height: 150px;


}

}

/* =========================================================
ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

.home.home-visible,
.home.home-visible *,
.home.home-visible .home-sidebar,
.home.home-visible .home-main,
.home.home-visible .home-profile,
.home.home-visible .home-news,
.home.home-visible .featured,
.home.home-visible .featured-card,
.home.home-visible .current-box,
.home.home-visible .home-links,
.home.home-visible .home-footer {

animation: none !important;

opacity: 1;

visibility: visible;

transform: none;


}

}