/* =====================================================================
   Crafto-style shared parts for Dawayer Studio (Dec 2026)
   Menu, footer, heading style, buttons. Black background kept.
   Only the few rules we need, rewritten from the Crafto "web agency"
   demo (Inter typeface, pill buttons, line-reveal headings).
   ===================================================================== */
:root {
    --cr-lime: #a3b838;          /* Dawayer lime (Crafto uses #BEFF01) */
    --cr-dark: #0c0c0c;
    --cr-line: rgba(255, 255, 255, .12);
    --cr-grey: #a5a5a5;
    --cr-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --cr-ease: cubic-bezier(.25, .46, .45, .94); /* easeOutQuad, as in Crafto */
}

/* ---------- Typeface ---------- */
body, h1, h2, h3, h4, h5, h6, input, textarea, select, button,
.custom-font, .loading-text, .sub-title h6, .freelancer .cont h1,
.portfolio .gallery .items .item-img .cont span, .portfolio .gallery .items .cont span,
.contact-sec .form .form-group input, .contact-sec .form .form-group textarea,
.select2-container, .select2-container .select2-search--inline .select2-search__field,
.sec-head .path * {
    font-family: var(--cr-font) !important;
}
/* ---------- Icons: Crafto's own Font Awesome (cut down to the ~50 icons the site uses, ~6 KB) ---------- */
@font-face { font-family: 'Crafto Icons'; src: url('../fonts/crafto/fa-solid-900.subset.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: block; }
@font-face { font-family: 'Crafto Brands'; src: url('../fonts/crafto/fa-brands-400.subset.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
.fas, .fa, .fa-solid { font-family: 'Crafto Icons', 'Font Awesome 5 Free' !important; font-weight: 900 !important; font-style: normal; display: inline-block; line-height: 1; -webkit-font-smoothing: antialiased; }
.fab, .fa-brands { font-family: 'Crafto Brands', 'Font Awesome 5 Brands' !important; font-weight: 400 !important; font-style: normal; display: inline-block; line-height: 1; -webkit-font-smoothing: antialiased; }
.fa-xmark::before { content: "\f00d"; }
.fa-x-twitter::before, .fab.fa-twitter::before { content: "\e61b"; }
.fa-magnifying-glass::before { content: "\f002"; }
.fa-quote-left::before { content: "\f10d"; }
.fa-arrow-right::before { content: "\f061"; }
/* the old Pe-icon arrows / close / search / filter -> Crafto icons */
.pe-7s-angle-left::before, .pe-7s-angle-right::before, .pe-7s-close::before, .pe-7s-search::before, .pe-7s-filter::before {
    font-family: 'Crafto Icons' !important; font-weight: 900; font-style: normal;
}
.pe-7s-angle-left::before { content: "\f060"; }
.pe-7s-angle-right::before { content: "\f061"; }
.pe-7s-close::before { content: "\f00d"; }
.pe-7s-search::before { content: "\f002"; }
.pe-7s-filter::before { content: "\f0b0"; }
.progress-wrap::after { font-family: 'Crafto Icons' !important; content: "\f062" !important; }

body { font-size: 16px; line-height: 1.75; letter-spacing: 0; }

/* ---------- Headings (Crafto: semibold, tight letter spacing, sentence case) ---------- */
.sec-head h1, .sec-head h2, .sec-head h3, .sec-head .sec-title,
.pages-header .cont h1, .page-header h1 {
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: -0.035em !important;
    line-height: 1.05;
    font-size: clamp(40px, 5.4vw, 80px);
    text-shadow: none;
}
.sec-head h6, .page-header h6 {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.sec-head h6::before, .page-header h6::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin: -2px 10px 0 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cr-lime);
    flex: none;
}
.sec-head h2.fz-35, .page-header h2.fz-35 {
    font-size: clamp(20px, 2.2vw, 28px) !important;
    letter-spacing: -0.02em;
    font-weight: 400;
    color: var(--cr-grey);
}
.sec-head .sec-title .word:first-child::first-letter, .sec-head h1 .word:first-child::first-letter,
.sec-head .sec-title .word:first-child > .char:first-child, .sec-head h1 .word:first-child > .char:first-child,
.call-action .cta-title > .word:first-child > .char:first-child { text-transform: uppercase; }
.sec-head .tbg { display: none; }   /* Crafto has no outline ghost words */
h2, h3, h4, h5 { letter-spacing: -0.02em; }
.cr-reveal .whitespace, .call-action .whitespace, .sec-head .whitespace { width: .26em; }

/* "Let's talk" band above the footer: plain words grey, bold words white (Crafto footer line style) */
.call-action .content .cta-title {
    text-transform: none !important;
    -webkit-text-stroke-width: 0 !important;
    color: #8f8f8f !important;
    font-weight: 400 !important;
    font-size: clamp(36px, 4.6vw, 72px) !important;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.call-action .content .cta-title span { color: inherit; }
.call-action .content .cta-title b, .call-action .content .cta-title b span { color: #fff !important; font-weight: 600; }
.call-action h6, .call-action .content h6 {
    display: inline-block;
    color: #fff; font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
}
.call-action .content h6::before { content: ''; display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; width: 8px; height: 8px; border-radius: 50%; background: var(--cr-lime); flex: none; }

/* Line/word reveal (Crafto "lines": up 30px + fade, 600 ms, staggered).
   crafto-motion.js adds .cr-reveal + .is-in; without JS nothing is hidden. */
.cr-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s var(--cr-ease), transform .6s var(--cr-ease);
    transition-delay: calc(60ms * var(--word-index, 0));
}
.cr-reveal.is-in .word { opacity: 1; transform: none; }
.cr-reveal .char, .cr-reveal.splitting.animated .char { animation: none !important; opacity: 1 !important; transform: none !important; }
.cr-fade { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--cr-ease), transform .8s var(--cr-ease); }
.cr-fade.is-in { opacity: 1; transform: none; }

/* ---------- Buttons (Crafto "expand" pill: lime circle grows on hover) ---------- */
.btn-curve, a.simple-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50px;
    padding: 14px 28px 14px 26px !important;
    overflow: visible;
    color: #fff;
    text-decoration: none;
}
.btn-curve::after, a.simple-btn::after { display: none !important; }
.btn-curve::before, a.simple-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: var(--cr-lime);
    transform: translateY(-50%);
    transition: width .3s ease-in-out;
    z-index: -1;
}
.btn-curve:hover::before, .btn-curve:focus-visible::before,
a.simple-btn:hover::before, a.simple-btn:focus-visible::before { width: 100%; }
.btn-curve span, a.simple-btn, .slider .caption .hero-actions .btn-curve span {
    font-family: var(--cr-font);
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    color: #fff;
    transition: color .3s ease-in-out;
}
.btn-curve:hover span, .btn-curve:focus-visible span,
a.simple-btn:hover, a.simple-btn:focus-visible { color: #111 !important; }
.btn-curve span::after {
    content: "\f061";
    font-family: 'Crafto Icons';
    font-weight: 900;
    font-size: .8em;
    display: inline-block;
    margin-left: 10px;
    transition: transform .3s ease-in-out;
}
.btn-curve:hover span::after { transform: translateX(4px); }
.slider .caption .hero-actions .btn-curve { padding: 14px 28px 14px 26px !important; }

/* Header pill: Crafto "switch text" (label slides up on hover) */
.cr-btn-switch {
    display: inline-flex;
    border-radius: 50px;
    background: #fff;
    color: #111;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .35);
    transition: background .3s ease-in-out, transform .3s ease-in-out;
    white-space: nowrap;
}
.cr-btn-switch > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    position: relative;
    overflow: hidden;
}
.cr-btn-switch i { font-size: 12px; }
.cr-switch-text {
    display: inline-block;
    transition: transform .85s cubic-bezier(.15, .85, .31, 1);
}
.cr-switch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    white-space: nowrap;
    transform: translate(-50%, 100%);
    transition: opacity .5s, transform .8s cubic-bezier(.15, .85, .31, 1);
}
.cr-btn-switch:hover, .cr-btn-switch:focus-visible { background: var(--cr-lime); color: #111; transform: translateY(-2px); }
.cr-btn-switch:hover .cr-switch-text { transform: translateY(-200%); }
.cr-btn-switch:hover .cr-switch-text::before { transform: translate(-50%, 150%); opacity: 1; }

/* ---------- Header: logo + "Let's talk" + burger (Crafto hamburger header) ---------- */
.topnav { display: none !important; }  /* old "Menu" button */
.cr-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    transition: transform .35s var(--cr-ease), background-color .35s, box-shadow .35s;
}
.cr-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 22px 40px;
    transition: padding .35s;
}
.cr-logo img { width: 60px; height: 60px; display: block; transition: width .35s, height .35s; }
.cr-header-right { display: flex; align-items: center; gap: 18px; }
.cr-header a:focus-visible, .cr-burger:focus-visible, .cr-menu a:focus-visible, .cr-menu-close:focus-visible { outline: 2px solid var(--cr-lime); outline-offset: 3px; }
/* No black strip behind the logo and menu (owner, 30 Nov 2026): the header stays transparent when scrolling */
.cr-header.is-sticky { background: transparent; box-shadow: none; }
.cr-header.is-sticky .cr-header-inner { padding-top: 12px; padding-bottom: 12px; }
.cr-header.is-sticky .cr-logo img { width: 48px; height: 48px; }
.cr-header.is-hidden { transform: translateY(-100%); }

/* Crafto push-button burger (22 x 14, 4 lines, last one short) */
.cr-burger {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border: 0; background: transparent; cursor: pointer;
}
.cr-burger .push-button { position: relative; display: block; width: 22px; height: 14px; transition: .3s; }
.cr-burger:hover .push-button { opacity: .6; }
.cr-burger .push-button span {
    position: absolute; left: 0; right: 0; margin: 0 auto;
    display: block; width: 22px; height: 2px; background: #fff;
    transition: .25s;
}
.cr-burger .push-button span:nth-child(1) { top: 0; }
.cr-burger .push-button span:nth-child(2), .cr-burger .push-button span:nth-child(3) { top: 6px; }
.cr-burger .push-button span:nth-child(4) { top: 12px; width: 14px; left: -8px; }
.menu-open .cr-burger .push-button span:nth-child(1), .menu-open .cr-burger .push-button span:nth-child(4) { top: 7px; width: 0; }
.menu-open .cr-burger .push-button span:nth-child(2) { transform: rotate(45deg); }
.menu-open .cr-burger .push-button span:nth-child(3) { transform: rotate(-45deg); }

/* Full-screen menu ("hamburger menu simple": slides down, items drop in one by one) */
html.menu-open, html.menu-open body { overflow: hidden; }
.cr-menu {
    position: fixed;
    left: 0; right: 0; top: -100%;
    height: 100vh; height: 100dvh;
    z-index: 1031;
    overflow-y: auto;
    background: #0c0c0c url('../img/cr-vertical-lines.svg') center top / 150px 1px repeat;
    visibility: hidden;
    transition: top .3s, visibility 0s .3s;
}
.menu-open .cr-menu { top: 0; visibility: visible; transition: top .3s; box-shadow: 0 0 60px rgba(0,0,0,.3); }
.cr-menu-close {
    position: absolute; right: 50px; top: 50px; z-index: 9;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: #111; border: 0; font-size: 16px; cursor: pointer;
    opacity: 0; transform: scale(.8); visibility: hidden;
}
.menu-open .cr-menu-close {
    opacity: 1; transform: scale(1); visibility: visible;
    transition: all .4s cubic-bezier(.37, 0, .63, 1) .5s;
}
.cr-menu-close:hover { background: var(--cr-lime); }
.cr-menu-container { min-height: 100%; display: flex; align-items: center; }
.cr-menu-grid { width: 100%; display: grid; grid-template-columns: 8fr 4fr; gap: 60px; align-items: center; padding: 110px 0 80px; }
.cr-menu-logo img { width: 64px; height: 64px; display: block; }
.cr-menu-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 18vh; }
.cr-menu-label { display: block; color: var(--cr-lime); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.cr-menu-col p, .cr-menu-col a { color: var(--cr-grey); font-size: 16px; line-height: 1.75; margin: 0; }
.cr-menu-col a:hover { color: #fff; }
.cr-menu-col .cr-underline { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.4); }
.cr-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cr-social a {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #fff; font-size: 14px;
    transition: background .3s, color .3s;
}
.cr-social a:hover { background: var(--cr-lime); color: #111; }
.cr-menu-list ul { list-style: none; margin: 0; padding: 0; }
.cr-menu-list a {
    display: inline-block;
    padding: 6px 0;
    color: #fff;
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.2;
    transition: color .3s, opacity .3s;
}
.cr-menu-list ul:hover a { opacity: .45; }
.cr-menu-list ul a:hover, .cr-menu-list a.is-active { opacity: 1; color: var(--cr-lime); }
/* entrance timing taken from Crafto's hamburger-menu-simple */
.cr-menu .menu-item { opacity: 0; transform: scale(1.15) translateY(-30px); transition: transform .5s cubic-bezier(.4,.01,.165,.99), opacity .6s cubic-bezier(.4,.01,.165,.99); }
.cr-menu-logo, .cr-menu-col { opacity: 0; transform: translateY(-50px); transition: transform .5s cubic-bezier(.4,.01,.165,.99), opacity .6s cubic-bezier(.4,.01,.165,.99); }
.menu-open .cr-menu .menu-item, .menu-open .cr-menu-logo, .menu-open .cr-menu-col { opacity: 1; transform: none; }
.menu-open .cr-menu-logo { transition-delay: .2s; }
.menu-open .cr-menu-col { transition-delay: .4s; }
.menu-open .cr-menu-col:last-child { transition-delay: .8s; }
.menu-open .cr-menu .menu-item:nth-child(1) { transition-delay: .27s; }
.menu-open .cr-menu .menu-item:nth-child(2) { transition-delay: .34s; }
.menu-open .cr-menu .menu-item:nth-child(3) { transition-delay: .41s; }
.menu-open .cr-menu .menu-item:nth-child(4) { transition-delay: .48s; }
.menu-open .cr-menu .menu-item:nth-child(5) { transition-delay: .55s; }
.menu-open .cr-menu .menu-item:nth-child(6) { transition-delay: .62s; }
.menu-open .cr-menu .menu-item:nth-child(7) { transition-delay: .69s; }

@media (max-width: 991px) {
    .cr-header-inner { padding: 14px 20px; }
    .cr-logo img { width: 50px; height: 50px; }
    .cr-menu-close { right: 20px; top: 20px; }
    .cr-menu-grid { grid-template-columns: 1fr; gap: 40px; padding: 90px 0 50px; }
    .cr-menu-list { order: -1; }
    .cr-menu-logo { display: none; }
    .cr-menu-cols { grid-template-columns: 1fr; gap: 22px; margin-top: 0; }
}
@media (max-width: 575px) {
    .cr-btn-switch { display: none; }
}

/* the floating social bar: its icons now live in the footer (Crafto has no side bar) */
.social-fixed { display: none !important; }

/* ---------- Footer (Crafto web-agency layout, dark) ---------- */
.site-footer { display: none; }
.cr-footer { background: #000; padding: 90px 0 0; border-top: 1px solid var(--cr-line); }
.cr-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 60px;
}
.cr-footer-cta {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.cr-footer-cta a {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(var(--cr-lime), var(--cr-lime)) 0 100% / 100% 3px no-repeat;
    padding-bottom: 2px;
    transition: color .3s;
}
.cr-footer-cta a:hover { color: var(--cr-lime); }
.cr-footer-logo img { width: 56px; height: 56px; display: block; }
.cr-footer-mid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: end;
    padding-bottom: 60px;
}
.cr-footer-label { display: block; color: #fff; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.cr-footer-col p { color: var(--cr-grey); font-size: 15px; line-height: 1.75; margin: 0; max-width: 320px; }
.cr-footer-reach { text-align: right; }
.cr-footer-reach > a { display: block; color: #fff; font-size: 16px; line-height: 1.9; }
.cr-footer-reach .cr-footer-mail { font-weight: 600; text-decoration: underline; text-decoration-color: var(--cr-lime); text-underline-offset: 5px; }
.cr-footer-reach > a:hover { color: var(--cr-lime); }
.cr-footer-social { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cr-footer-social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--cr-line);
    color: #fff;
    font-size: 14px;
    transition: background .3s, color .3s, border-color .3s;
}
.cr-footer-social a:hover { background: var(--cr-lime); border-color: var(--cr-lime); color: #111; }
.cr-footer-bottom { border-top: 1px solid var(--cr-line); padding: 24px 0; }
.cr-footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cr-footer-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; }
.cr-footer-nav a { color: #fff; font-weight: 600; font-size: 15px; }
.cr-footer-nav a:hover { color: var(--cr-lime); }
.cr-copy { margin: 0; color: var(--cr-grey); font-size: 14px; }

@media (max-width: 767px) {
    .cr-footer { padding-top: 60px; }
    .cr-footer-top { flex-direction: column-reverse; align-items: flex-start; margin-bottom: 40px; }
    .cr-footer-mid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 40px; }
    .cr-footer-reach { text-align: left; }
    .cr-footer-social { justify-content: flex-start; }
    .cr-footer-bottom .container { flex-direction: column; align-items: flex-start; }
    .cr-footer-nav { gap: 6px 20px; }
}

/* ---------- "work together": main call to action on every page (except Contact) ---------- */
.cr-together { position: relative; padding: 110px 0 90px; background: #000; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08); }
.cr-together-stage {
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0 3vw;
    font-family: var(--cr-font);
    font-size: 11vw; font-weight: 600; line-height: .9; letter-spacing: -0.07em;
    white-space: nowrap;
}
.cr-together-work { color: #fff; }
.cr-together-lime { color: var(--cr-lime); }
/* Rotating circle sits between the words, raised, overlapping the start of "together" */
.cr-badge {
    position: relative; z-index: 3; flex: none;
    align-self: flex-start;
    width: 170px; height: 170px;
    margin: 0 -40px 0 3vw;
    transform: translateY(-45%);
    display: block !important;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    transition: transform .4s cubic-bezier(.2, .9, .3, 1.3);
    letter-spacing: normal;
}
.cr-badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: cr-spin 14s linear infinite; }
.cr-badge-ring text { font-family: var(--cr-font); font-size: 13.5px; font-weight: 700; letter-spacing: 1px; fill: #111; }
.cr-badge-core {
    position: absolute; top: 50%; left: 50%;
    width: 74px; height: 74px; margin: -37px 0 0 -37px;
    display: flex !important; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--cr-lime); color: #111; font-size: 22px;
    transition: transform .4s cubic-bezier(.2, .9, .3, 1.3), background .3s, color .3s;
}
.cr-badge-core i { transform: rotate(-45deg); transition: transform .4s; }
.cr-badge:hover { transform: translateY(-45%) scale(1.06); }
.cr-badge:hover .cr-badge-core { transform: scale(1.12); background: #111; color: var(--cr-lime); }
.cr-badge:hover .cr-badge-core i { transform: rotate(0); }
.cr-badge:hover .cr-badge-ring { animation-duration: 5s; }
.cr-badge:focus-visible { outline: 3px solid var(--cr-lime); outline-offset: 6px; }
@keyframes cr-spin { to { transform: rotate(360deg); } }
.cr-together-cta {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px;
    margin-top: 44px; text-align: center;
}
.cr-together-cta p { margin: 0; font-size: 19px; color: rgba(255, 255, 255, .8); }
@media (prefers-reduced-motion: reduce) { .cr-badge-ring { animation: none; } }

/* Footer: a lead to the portfolio (the call to action is the "work together" section above) */
.cr-footer-lead { display: inline-flex !important; flex-direction: column; gap: 6px; color: #fff; text-decoration: none; }
.cr-footer-lead-small { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.cr-footer-lead-big { display: inline-flex !important; align-items: center; gap: 16px; font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; transition: color .3s; }
.cr-footer-lead-big i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
    font-size: 18px; transform: rotate(-45deg); transition: transform .4s, background .3s, border-color .3s, color .3s;
}
.cr-footer-lead:hover .cr-footer-lead-big { color: var(--cr-lime); }
.cr-footer-lead:hover .cr-footer-lead-big i { transform: rotate(0); background: var(--cr-lime); border-color: var(--cr-lime); color: #111; }

@media (max-width: 991px) {
    .cr-together { padding: 90px 0 60px; }
    .cr-together-stage { position: relative; flex-direction: column; align-items: center; font-size: 22vw; padding: 0; }
    .cr-badge { position: absolute; right: 5%; top: 0; margin: 0; width: 104px; height: 104px; }
    .cr-badge-core { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 15px; }
    .cr-together-cta { margin-top: 32px; gap: 18px; }
    .cr-together-cta p { font-size: 16px; }
    .cr-footer-lead-big i { width: 42px; height: 42px; font-size: 15px; }
}

/* ---------- Project cards (Crafto style): image fills the card, tag pills on top, title at the bottom ---------- */
.blog-grid .items { will-change: transform; }
.cr-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    isolation: isolate;
}
.cr-card-img {
    display: block;
    width: 100%;
    height: auto;                       /* same thumbnail, same proportions as before */
    transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.cr-card::after {                       /* soft dark fade at the bottom so the title is readable */
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.88) 100%);
    pointer-events: none;
    z-index: 1;
}
.cr-card-media { position: relative; overflow: hidden; border-radius: 20px; }
.cr-card:hover .cr-card-img { transform: scale(1.08); }
.cr-card-link { position: absolute; inset: 0; z-index: 2; }
.cr-card-link:focus-visible { outline: 3px solid var(--cr-lime); outline-offset: -3px; border-radius: 20px; }
.cr-card-tags {
    position: absolute;
    top: 22px; left: 22px; right: 22px;
    z-index: 3;
    display: flex; flex-wrap: wrap; gap: 8px;
    pointer-events: none;
}
.cr-card-tags a {
    pointer-events: auto;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 30px;
    background: #fff;
    color: #111;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .3px;
    text-transform: uppercase;
    transition: background .3s;
}
.cr-card-tags a:hover { background: var(--cr-lime); color: #111; }
.cr-card-title {
    position: absolute;
    left: 22px; right: 22px; bottom: 20px;
    z-index: 3;
    margin: 0;
    pointer-events: none;
    font-size: 21px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;              /* long titles: 2 lines, then … */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cr-card-title a { color: #fff; display: inline !important; }
@media (max-width: 767px) {
    .cr-card { border-radius: 16px; }
    .cr-card-title { font-size: 20px !important; left: 18px; right: 18px; bottom: 16px; }
    .cr-card-tags { top: 16px; left: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .cr-reveal .word, .cr-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
    .cr-header, .btn-curve::before, .cr-switch-text, .cr-menu, .cr-menu * { transition: none !important; }
    .blog-grid .items { transform: none !important; }
}

/* ---------- "Explore all ... projects" button under project grids (Dec 2026) ----------
   Pill with a lime circle; on hover the lime spreads from the circle over the whole pill. */
.cr-more { padding: 30px 15px 10px; text-align: center; }
.cr-more-row { display: flex; align-items: center; justify-content: center; gap: 30px; }
.cr-more-line { flex: 1 1 0; max-width: 260px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.25)); }
.cr-more-line:last-child { background: linear-gradient(90deg, rgba(255,255,255,.25), rgba(255,255,255,0)); }
.cr-more-btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex !important; align-items: center; gap: 22px;
    padding: 10px 10px 10px 34px; border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, .28); color: #fff !important; text-decoration: none !important;
    transition: border-color .4s;
}
.cr-more-btn::before {               /* lime fill, starts as the circle */
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--cr-lime);
    clip-path: circle(28px at calc(100% - 38px) 50%);
    transition: clip-path .7s cubic-bezier(.7, 0, .2, 1);
}
.cr-more-label { font-family: var(--cr-font); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; transition: color .4s .1s; }
.cr-more-count { margin: 16px 0 0; font-size: 14px; font-style: italic; color: #8c8c8c; }
.cr-more-icon {
    flex: none; width: 56px; height: 56px; border-radius: 50%;
    display: flex !important; align-items: center; justify-content: center;
    color: #111; font-size: 18px; transform: rotate(-45deg); transition: transform .5s cubic-bezier(.2, .9, .3, 1.3);
}
.cr-more-btn:hover, .cr-more-btn:focus-visible { border-color: var(--cr-lime); }
.cr-more-btn:hover::before, .cr-more-btn:focus-visible::before { clip-path: circle(150% at calc(100% - 38px) 50%); }
.cr-more-btn:hover .cr-more-label, .cr-more-btn:focus-visible .cr-more-label { color: #111; }
.cr-more-btn:hover .cr-more-icon, .cr-more-btn:focus-visible .cr-more-icon { transform: rotate(0); }
.cr-more-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 767px) {
    .cr-more { padding-top: 10px; }
    .cr-more-row { gap: 0; }
    .cr-more-line { display: none; }
    .cr-more-btn { gap: 14px; padding-left: 24px; max-width: 100%; }
    .cr-more-label { font-size: 15px; text-align: left; }
    .cr-more-count { font-size: 13px; margin-top: 12px; }
    .cr-more-icon { width: 48px; height: 48px; font-size: 16px; }
    .cr-more-btn::before { clip-path: circle(24px at calc(100% - 34px) 50%); }
    .cr-more-btn:hover::before { clip-path: circle(150% at calc(100% - 34px) 50%); }
}

/* Dark version of the rotating badge (used next to giant titles) */
.cr-badge-dark { background: #1b1b1b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 60px rgba(0, 0, 0, .45); }
.cr-badge-dark .cr-badge-ring text { fill: #fff; }
.cr-badge-dark .cr-badge-core { background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: var(--cr-lime); font-size: 26px; }
.cr-badge-dark:hover .cr-badge-core { background: var(--cr-lime); color: #111; border-color: var(--cr-lime); }
.cr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Breadcrumb: every step is a link; underline grows and text turns lime on hover (Dec 2026) */
.path a { position: relative; display: inline-block !important; color: #fff !important; text-decoration: none !important; transition: color .3s; }
.path a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--cr-lime); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.path a:hover, .path a:focus-visible { color: var(--cr-lime) !important; }
.path a:hover::after, .path a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.path a.active { color: var(--cr-lime) !important; }

