/* =====================================================================
   Home page, Crafto "web agency" layout on black (Dec 2026).
   Loaded only on the Home page, after crafto-shared.css.
   ===================================================================== */

/* ---------- Hero ---------- */
.cr-hero .caption h1 {
    font-size: clamp(46px, 7.2vw, 118px) !important;
    font-weight: 600 !important;
    line-height: .98 !important;
    letter-spacing: -0.05em !important;
    text-transform: none !important;
    text-shadow: none !important;
    max-width: 1100px;
    margin: 0 auto 40px !important;
}
.cr-hero .caption h1 .tline {
    display: block;
    color: #c9c9c9;
    font-weight: 300;
    margin: 0 !important;
}
.cr-hero .caption h1 .char { animation: none !important; opacity: 1 !important; }
.cr-hero .bg-img::before { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.45) 55%, #000 100%) !important; opacity: 1 !important; }
.cr-hero .swiper-nav-ctrl {
    width: 54px !important; height: 54px !important; border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,.25) !important; background: transparent !important;
    display: flex !important; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; transition: background .3s, color .3s, border-color .3s;
}
.cr-hero .swiper-nav-ctrl:hover { background: var(--cr-lime) !important; border-color: var(--cr-lime) !important; color: #111; }
.cr-scroll-down {
    position: absolute; left: 50%; bottom: 34px; z-index: 5;
    width: 26px; height: 42px; margin-left: -13px;
    border: 2px solid rgba(255,255,255,.6); border-radius: 20px;
}
.cr-scroll-down span {
    position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
    border-radius: 2px; background: var(--cr-lime);
    animation: cr-scroll 1.6s ease-in-out infinite;
}
@keyframes cr-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Shared bits ---------- */
.sec-head h1, .sec-head h2, .sec-head h3, .sec-head h6, .sec-head .sec-title, .sec-head .char { text-shadow: none !important; }
.cr-sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.cr-sec-row .sec-head { text-align: left; margin: 0; }
.cr-sec-row .btn-curve { flex: none; margin-bottom: 8px; }
.cr-giant-word {
    color: var(--cr-lime);
    font-size: clamp(110px, 21vw, 360px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: .8;
    white-space: nowrap;
    text-align: right;
    padding-right: 4vw;
    pointer-events: none;
    user-select: none;
    will-change: transform;
}
.cr-giant-word-left { text-align: left; padding: 0 0 0 4vw; margin-bottom: 70px; }
/* Projects: giant lime "projects" title is the link to the portfolio, cards run the full page width */
.cr-projects-head { align-items: flex-end; margin-bottom: 70px; }
.cr-giant-title { text-align: left; padding: 0; margin: 0 0 0 -0.04em; text-transform: none !important; }
.cr-giant-title a { display: inline !important; color: inherit !important; font: inherit; letter-spacing: inherit; transition: color .3s; }
.cr-giant-title a:hover { color: #fff !important; }
.cr-projects-wide { padding: 0 45px; }
.cr-projects-wide .row { margin: 0 -15px; }
.cr-projects-wide .items { padding: 0 15px; }
/* Trial (30 Nov): on Home the project title sits under the image, a little smaller */
.cr-projects .cr-card { overflow: visible; border-radius: 0; background: none; }
.cr-projects .cr-card::after { display: none; }
.cr-projects .cr-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 30%); pointer-events: none; z-index: 1; }
.cr-projects .cr-card-title { position: static; margin-top: 18px; padding: 0 4px; font-size: 18px !important; pointer-events: auto; }
.cr-projects .cr-card-title a { color: #fff !important; transition: color .3s; }
.cr-projects .cr-card:hover .cr-card-title a { color: var(--cr-lime) !important; }
/* Two-line centred caption (Home + Portfolio): client name, then services in small grey italics */
.cr-card-caption { margin-top: 22px; padding: 0 10px; text-align: center; }
.cr-card-client { margin: 0; font-size: 19px !important; font-weight: 600 !important; line-height: 1.3 !important; letter-spacing: -0.01em; text-transform: none !important; }
.cr-card-client a { display: inline !important; color: #fff !important; transition: color .3s; }
.cr-card:hover .cr-card-client a { color: var(--cr-lime) !important; }
.cr-card-meta { margin: 4px 0 0; font-size: 14px; font-style: italic; font-weight: 400; line-height: 1.4; color: #8c8c8c; }
/* Tags (Home + Portfolio): centred at the bottom of the image, see-through with a thin sharp white stroke */
.cr-projects .cr-card-tags { top: auto; bottom: 18px; left: 16px; right: 16px; justify-content: center; }
.cr-projects .cr-card-tags a {
    background: rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .9);
    color: #fff;
}
.cr-projects .cr-card-tags a:hover { background: var(--cr-lime); border-color: var(--cr-lime); color: #111; }
.cr-projects .cr-card-media::after { background: linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%); }
.cr-arrows { display: flex; gap: 10px; margin-top: 36px; }
.cr-arrows .prev, .cr-arrows .next {
    position: static !important;
    width: 54px; height: 54px; border-radius: 50%;
    display: inline-flex !important; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.22); background: transparent;
    color: #fff; font-size: 15px; transform: none !important;
    transition: background .3s, color .3s, border-color .3s;
}
.cr-arrows .prev:hover, .cr-arrows .next:hover { background: var(--cr-lime); border-color: var(--cr-lime); color: #111; }

/* ---------- Showreel ---------- */
.cr-showreel { padding: 120px 0 0; background: #000; }
.cr-showreel-head { margin-bottom: 50px; }
.cr-showreel-head .sec-head { text-align: left; }
.cr-showreel .sec-title { text-transform: lowercase !important; }
.cr-showreel .sec-title .word:first-child > .char:first-child, .cr-showreel .sec-title .word:first-child::first-letter { text-transform: uppercase; }
.cr-showreel-media { position: relative; border-radius: 20px; overflow: hidden; background: #111; }
.cr-showreel-media img { display: block; width: 100%; height: auto; transform: scale(var(--cr-zoom, 1.12)); transition: transform .2s linear; }
.cr-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.cr-play-btn {
    position: relative;
    width: 130px; height: 130px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cr-lime); color: #111; font-size: 26px;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.cr-play-btn i { margin-left: 6px; }
.cr-play-btn::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid var(--cr-lime);
    animation: cr-pulse 2s ease-out infinite;
}
/* the old theme sets a:hover { display:inline-block }, which made the button jump; keep it centred */
.cr-play, .cr-play:hover { display: flex !important; }
.cr-play-btn, .cr-play:hover .cr-play-btn { display: flex !important; }
.cr-play:hover .cr-play-btn { transform: scale(1.08); }
@keyframes cr-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- About ---------- */
.cr-about { padding: 140px 0 0; overflow: hidden; background: #000; }
.cr-about-imgs { position: relative; padding: 0 0 12% 0; }
.cr-about-img { border-radius: 20px; overflow: hidden; background: #111; }
.cr-about-img img { display: block; width: 100%; height: auto; }
.cr-about-img-1 { width: 78%; }
.cr-about-img-1 img { transform: scale(var(--cr-zoom, 1.12)); transition: transform .2s linear; }
.cr-about-img-2, .cr-about-img-3 { position: absolute; right: -4%; width: 50%; }
.cr-about-img-2 { top: 6%; }
.cr-about-img-3 { bottom: 0; right: 14%; width: 46%; }
.cr-about-text .sec-title { font-size: clamp(34px, 3.6vw, 58px) !important; margin-bottom: 26px; }
.cr-about-copy, .cr-about-copy p { color: var(--cr-grey); font-size: 17px; line-height: 1.85; }
.cr-about-copy { margin-bottom: 34px; }
.cr-about .cr-giant-word { margin-top: 50px; }

/* ---------- Services ---------- */
.cr-services { padding: 120px 0 90px; background: #0c0c0c; }
.cr-service {
    position: relative; display: block; height: 380px; margin-bottom: 30px;
    border-radius: 20px; overflow: hidden; background: #111; isolation: isolate;
}
.cr-service img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.cr-service::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%); }
.cr-service:hover img { transform: scale(1.08); }
.cr-service-num {
    position: absolute; top: 22px; left: 22px; z-index: 2;
    padding: 4px 14px; border-radius: 30px; background: #fff; color: #111;
    font-size: 12px; font-weight: 600; letter-spacing: .5px;
}
.cr-service-arrow {
    position: absolute; top: 18px; right: 18px; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cr-lime); color: #111; font-size: 14px;
    transform: scale(0) rotate(-45deg); transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.cr-service:hover .cr-service-arrow, .cr-service:focus-visible .cr-service-arrow { transform: scale(1) rotate(-45deg); }
.cr-service-title {
    position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; margin: 0;
    color: #fff; font-size: 22px !important; font-weight: 500 !important; line-height: 1.25 !important;
    letter-spacing: -0.02em; text-transform: none !important;
}
.cr-service:focus-visible { outline: 3px solid var(--cr-lime); outline-offset: 3px; }

/* ---------- Projects ---------- */
.cr-projects { padding: 130px 0 100px !important; background: #000; overflow: hidden; }

/* ---------- Team ---------- */
.cr-team { padding: 120px 0 !important; background: #0c0c0c !important; }
.cr-team .sec-head { text-align: left; }
.cr-team .team-container .item { padding: 0 10px; }
.cr-team .team-container .item .img { border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.cr-team .team-container .item .img img { filter: grayscale(100%); transition: filter .5s, transform .6s; }
.cr-team .team-container .item:hover .img img { filter: grayscale(0); transform: scale(1.05); }
.cr-team .team-container .item .img::after, .cr-team .team-container .item .img::before { display: none !important; }
.cr-team .team-container .item .info { position: static !important; padding: 0 !important; background: none !important; text-align: left; opacity: 1 !important; transform: none !important; }
.cr-team .team-container .item .info h5 { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 2px; }
.cr-team .team-container .item .info span { color: var(--cr-grey); font-size: 14px; text-transform: none; letter-spacing: 0; }

/* ---------- Clients ---------- */
.cr-clients { padding: 120px 0 !important; background: #000; }
.cr-clients .brands-crs { margin-top: 60px; border-top: 1px solid var(--cr-line); border-bottom: 1px solid var(--cr-line); }
.cr-clients .brands .item { height: 150px; display: flex !important; align-items: center; justify-content: center; border-right: 1px solid var(--cr-line); padding: 20px 30px; }
/* Every logo gets the same box and sits in its middle: wide logos fill the width, tall ones the height.
   Empty space inside the files is cut by js/crafto-logos.js; 10 px is kept around every logo. */
.cr-clients .brands .item .img { width: 100%; max-width: 200px; height: 100px; padding: 10px; box-sizing: border-box; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.cr-clients .brands .item img { width: 100% !important; height: 100% !important; max-width: 100%; object-fit: contain; object-position: center; margin: 0 auto; opacity: .6; transition: opacity .3s, transform .3s; }
.cr-clients .brands .item:hover img { opacity: 1; transform: scale(1.05); }

/* ---------- Testimonials ---------- */
.cr-testi { padding: 120px 0 !important; background: #0c0c0c !important; overflow: hidden; }
.cr-testi .sec-head { margin-bottom: 40px; }
.cr-quote-mark { display: block !important; text-align: center; color: var(--cr-lime); font-size: 42px; margin-bottom: 26px; }
.cr-testi .slic-item .item { text-align: center; padding: 0 10px; }
.cr-testi-text, .cr-testi-text * {
    color: #fff !important; font-size: clamp(20px, 2vw, 28px) !important; font-weight: 300 !important;
    line-height: 1.55 !important; letter-spacing: -0.015em; margin-bottom: 34px;
}
.cr-testi .info, .cr-testi .info .cont { display: flex; justify-content: center; text-align: left; padding: 0 !important; border: 0 !important; }
.cr-testi .author { display: flex; align-items: center; gap: 14px; }
.cr-testi .author .img { flex: none; margin: 0 !important; }
.cr-testi .author-name { color: #fff; font-size: 17px; font-weight: 600; margin: 0; text-transform: none; letter-spacing: -0.01em; }
.cr-testi .author-details { color: var(--cr-grey); font-size: 14px; display: block; }
.cr-testi .author { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.cr-testi .author .img { grid-row: 1 / span 2; }
.cr-testi .arrows.cr-arrows { justify-content: center; position: static !important; }
.cr-testi .slick-dots { display: none !important; }

/* ---------- Phone / tablet ---------- */
@media (max-width: 991px) {
    .cr-sec-row { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
    .cr-about-imgs { margin-bottom: 50px; }
    .cr-giant-word { font-size: 30vw; }
    .cr-giant-title { margin-left: 0; transform: none !important; font-size: 26vw; }
    .cr-about-img-2 { right: 0; }
    .cr-projects-wide { padding: 0 15px; }
}
@media (max-width: 767px) {
    .cr-showreel { padding-top: 80px; }
    .cr-play-btn { width: 90px; height: 90px; font-size: 20px; }
    .cr-about, .cr-services, .cr-projects, .cr-team, .cr-clients, .cr-testi { padding-top: 80px !important; padding-bottom: 70px !important; }
    .cr-about { padding-bottom: 0 !important; }
    .cr-service { height: 300px; }
    .cr-clients .brands .item { height: 120px; }
    .cr-clients .brands .item .img { max-width: 150px; height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
    .cr-scroll-down span, .cr-play-btn::before { animation: none !important; }
    .cr-showreel-media img, .cr-about-img-1 img { transform: none !important; }
}
