.luna-projects,
.luna-projects * { box-sizing: border-box; }
.luna-projects {
--luna-blue: #2ea7f5;
--luna-blue-dark: #168bd5;
--luna-ink: #16191c;
--luna-muted: #6f7880;
--luna-line: #dfe7ec;
--luna-soft: #f4f7f9;
width: 100%;
overflow: hidden;
padding: 96px 20px;
color: var(--luna-ink);
background: #fff;
font-family: "Montserrat", Arial, sans-serif;
}
.luna-projects__inner { width: 100%; max-width: 1140px; margin: 0 auto; }
.luna-projects__header {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 48px;
margin-bottom: 38px;
}
.luna-projects__intro { max-width: 760px; }
.luna-projects__eyebrow {
display: block;
margin-bottom: 14px;
color: var(--luna-blue);
font-size: 12px;
font-weight: 700;
line-height: 1;
letter-spacing: .15em;
text-transform: uppercase;
}
.luna-projects h2,
.luna-projects h3,
.luna-projects p,
.luna-projects dl,
.luna-projects dd { margin: 0; }
.luna-projects h2 {
max-width: 800px;
color: var(--luna-ink);
font-family: "Montserrat", Arial, sans-serif;
font-size: 50px;
font-weight: 700;
line-height: 1.08;
letter-spacing: -.04em;
text-transform: uppercase;
text-wrap: balance;
}
.luna-projects__intro > p {
max-width: 720px;
margin-top: 18px;
color: var(--luna-muted);
font-size: 20px;
font-weight: 400;
line-height: 1.5;
}
.luna-projects__tabs {
display: inline-flex;
flex: 0 0 auto;
gap: 4px;
padding: 4px;
border: 1px solid var(--luna-line);
border-radius: 999px;
background: var(--luna-soft);
}
.luna-projects__tab {
appearance: none;
display: inline-flex;
align-items: center;
gap: 9px;
min-height: 50px;
padding: 0 19px;
border: 0;
border-radius: 999px;
color: #606a71;
background: transparent;
box-shadow: none;
font: 600 14px/1 "Montserrat", Arial, sans-serif;
cursor: pointer;
transition: color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.luna-projects__tab span {
display: grid;
width: 23px;
height: 23px;
place-items: center;
border-radius: 50%;
background: rgba(22, 25, 28, .07);
font-size: 11px;
}
.luna-projects__tab:hover { color: var(--luna-ink); background: #fff; }
.luna-projects__tab.is-active {
color: #fff;
background: var(--luna-ink);
box-shadow: 0 8px 22px rgba(22, 25, 28, .17);
}
.luna-projects__tab.is-active span { background: rgba(255, 255, 255, .15); }
.luna-projects__tab:focus-visible,
.luna-projects button:focus-visible,
.luna-projects a:focus-visible { outline: 3px solid rgba(46, 167, 245, .42); outline-offset: 3px; }
.luna-projects__panel[hidden] { display: none !important; }
.luna-projects__track {
display: flex;
gap: 24px;
width: 100%;
padding: 4px 2px 22px;
overflow-x: auto;
overscroll-behavior-x: contain;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
scrollbar-width: none;
-webkit-overflow-scrolling: touch;
cursor: grab;
touch-action: pan-x pan-y pinch-zoom;
}
.luna-projects__track::-webkit-scrollbar { display: none; }
.luna-projects__track a,
.luna-projects__track img { -webkit-user-drag: none; }
.luna-projects__track.is-grabbing * {
cursor: grabbing !important;
user-select: none !important;
-webkit-user-select: none !important;
}
.luna-projects__track.is-grabbing {
cursor: grabbing;
scroll-behavior: auto;
scroll-snap-type: none;
user-select: none;
}
.luna-project-card {
display: flex;
flex: 0 0 calc((100% - 48px) / 2.65);
min-width: 0;
min-height: 565px;
flex-direction: column;
overflow: hidden;
scroll-snap-align: start;
border: 1px solid var(--luna-line);
border-radius: 28px;
background: #fff;
box-shadow: 0 16px 45px rgba(19, 41, 57, .08);
transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
@media (hover: hover) {
.luna-project-card:hover {
transform: translateY(-5px);
border-color: rgba(46, 167, 245, .55);
box-shadow: 0 24px 55px rgba(19, 41, 57, .14);
}
}
.luna-project-card__media {
position: relative;
height: 280px;
overflow: hidden;
background: #eaf0f3;
}
.luna-project-card__media > a { display: block; width: 100%; height: 100%; }
.luna-project-card__media img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
opacity: 0;
transform: scale(1.015);
transition: opacity .35s ease, transform .6s ease;
-webkit-user-drag: none;
user-select: none;
}
.luna-project-card__media img.is-active { opacity: 1; transform: scale(1); }
.luna-project-card__badge {
position: absolute;
top: 18px;
left: 18px;
z-index: 2;
pointer-events: none;
padding: 9px 12px;
border: 1px solid rgba(255, 255, 255, .35);
border-radius: 999px;
color: #fff;
background: rgba(15, 21, 25, .62);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
font-size: 11px;
font-weight: 700;
line-height: 1;
letter-spacing: .04em;
text-transform: uppercase;
}
.luna-project-card__gallery-nav {
position: absolute;
right: 14px;
bottom: 14px;
z-index: 3;
display: flex;
align-items: center;
gap: 8px;
padding: 4px;
border: 1px solid rgba(255, 255, 255, .3);
border-radius: 999px;
color: #fff;
background: rgba(15, 21, 25, .66);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.luna-project-card__gallery-nav button {
appearance: none;
display: grid;
width: 32px;
height: 32px;
padding: 0;
place-items: center;
border: 0;
border-radius: 50%;
color: #fff;
background: rgba(255, 255, 255, .14);
box-shadow: none;
font: 400 25px/1 Arial, sans-serif;
cursor: pointer;
transition: background-color .2s ease;
}
.luna-project-card__gallery-nav button:hover { background: var(--luna-blue); }
.luna-project-card__gallery-nav > span { min-width: 38px; text-align: center; font-size: 11px; font-weight: 500; }
.luna-project-card__body {
display: flex;
flex: 1;
flex-direction: column;
padding: 27px 28px 28px;
}
.luna-project-card__topline {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 14px;
color: var(--luna-blue-dark);
font-size: 11px;
font-weight: 700;
line-height: 1.2;
letter-spacing: .1em;
text-transform: uppercase;
}
.luna-project-card__topline span:last-child { color: #9aa3a9; text-align: right; }
.luna-project-card h3 { font-family: "Montserrat", Arial, sans-serif; font-size: 29px; font-weight: 600; line-height: 1.14; letter-spacing: -.025em; }
.luna-project-card h3 a { color: var(--luna-ink); text-decoration: none; }
.luna-project-card__body > p { min-height: 46px; margin-top: 8px; color: var(--luna-muted); font-size: 16px; line-height: 1.45; }
.luna-project-card__facts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0;
margin-top: 23px;
padding: 17px 0;
border-top: 1px solid var(--luna-line);
border-bottom: 1px solid var(--luna-line);
}
.luna-project-card__facts > div + div { padding-left: 20px; border-left: 1px solid var(--luna-line); }
.luna-project-card__facts dt { margin-bottom: 5px; color: #929ca3; font-size: 11px; font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.luna-project-card__facts dd { color: var(--luna-ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.luna-project-card__footer {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 18px;
margin-top: auto;
padding-top: 23px;
}
.luna-project-card__footer strong { white-space: nowrap; color: var(--luna-ink); font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.luna-project-card__link {
display: inline-flex;
align-items: center;
gap: 7px;
color: var(--luna-blue-dark);
font-size: 13px;
font-weight: 700;
line-height: 1.2;
text-decoration: none;
white-space: nowrap;
}
.luna-project-card__link span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: var(--luna-blue); transition: transform .25s ease, background-color .25s ease; }
.luna-project-card__link span img { display: block; width: 12px; height: 12px; object-fit: contain; }
.luna-project-card__link:hover span { transform: translate(2px, -2px); background: var(--luna-blue-dark); }
.luna-projects__navigation {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 9px;
}
.luna-projects__counter { display: flex; align-items: baseline; gap: 7px; color: #a0a8ae; font-size: 13px; font-weight: 600; }
.luna-projects__counter b { color: var(--luna-ink); font-size: 24px; font-weight: 600; }
.luna-projects__arrows { display: flex; gap: 10px; }
.luna-projects__arrows button {
appearance: none;
display: grid;
width: 50px;
height: 50px;
padding: 0;
place-items: center;
border: 1px solid var(--luna-line);
border-radius: 50%;
color: var(--luna-ink);
background: #fff;
box-shadow: none;
font: 400 20px/1 Arial, sans-serif;
cursor: pointer;
transition: color .25s ease, border-color .25s ease, background-color .25s ease, opacity .25s ease;
}
.luna-projects__arrows button:hover:not(:disabled) { color: #fff; border-color: var(--luna-blue); background: var(--luna-blue); }
.luna-projects__arrows button:disabled { opacity: .28; cursor: default; }
@media (max-width: 1024px) {
.luna-projects { padding: 76px 20px; }
.luna-projects__header { align-items: flex-start; gap: 28px; }
.luna-projects h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.luna-projects__intro > p { margin-top: 13px; font-size: 18px; }
.luna-projects__tabs { margin-top: 4px; }
.luna-project-card { flex-basis: calc((100% - 24px) / 2.12); }
}
@media (max-width: 767px) {
.luna-projects { padding: 58px 0 54px 16px; }
.luna-projects__inner { max-width: none; }
.luna-projects__header { display: block; margin-bottom: 27px; padding-right: 16px; }
.luna-projects__eyebrow { margin-bottom: 11px; font-size: 10px; }
.luna-projects h2 { max-width: 340px; }
.luna-projects__intro > p { max-width: 500px; font-size: 16px; line-height: 1.5; }
.luna-projects__tabs { width: 100%; margin-top: 23px; }
.luna-projects__tab { flex: 1 1 50%; justify-content: center; min-height: 46px; padding: 0 12px; font-size: 12px; }
.luna-projects__track { gap: 14px; padding-right: 16px; padding-bottom: 18px; }
.luna-project-card { flex-basis: min(86vw, 345px); min-height: 540px; border-radius: 23px; }
.luna-project-card__media { height: 245px; }
.luna-project-card__badge { top: 14px; left: 14px; padding: 8px 10px; font-size: 9px; }
.luna-project-card__gallery-nav { right: 10px; bottom: 10px; }
.luna-project-card__gallery-nav button { width: 30px; height: 30px; }
.luna-project-card__body { padding: 23px 21px 22px; }
.luna-project-card h3 { font-size: 25px; }
.luna-project-card__body > p { min-height: 44px; font-size: 15px; }
.luna-project-card__facts { margin-top: 18px; padding: 15px 0; }
.luna-project-card__facts > div + div { padding-left: 14px; }
.luna-project-card__facts dd { font-size: 13px; }
.luna-project-card__footer { align-items: center; padding-top: 19px; }
.luna-project-card__footer strong { font-size: 18px; }
.luna-project-card__link { font-size: 0; }
.luna-project-card__link span { width: 38px; height: 38px; font-size: 15px; }
.luna-projects__navigation { padding-right: 16px; }
.luna-projects__arrows button { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
.luna-projects *, .luna-projects *::before, .luna-projects *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
