/* =====================================================================
   EF12 Portfolio v17 — απλός ξύλινος διακόπτης μέρα/νύχτα, σκόνη αντί για
   αστεράκια, ομαλό header, κεντραρισμένα κείμενα, hero με video,
   μεγαλύτερες εικόνες About, projects σε grid 4άδων, laptop/tablet/κινητό.
   ===================================================================== */

/* ---------- Πιστόλια: μόνο στο preloader ---------- */
.pistols:not(.pistols--load) { display: none !important; }

/* ---------- Μέρα/νύχτα: απλός ξύλινος διακόπτης με μπρούτζινο «κλειδί» ---------- */
.sky-toggle { width: 64px; height: 32px; }
.sky-toggle__track, [data-sky="day"] .sky-toggle__track {
  border-radius: 6px;
  background: linear-gradient(rgba(20, 12, 7, .35), rgba(0, 0, 0, .5)), var(--wood) 0 0 / 300px, #3a2416;
  box-shadow: inset 0 0 0 2px #120a06, inset 0 3px 5px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 220, 170, .14);
}
.sky-toggle__star, .sky-toggle__cloud { display: none !important; }
.sky-toggle__orb, [data-sky="day"] .sky-toggle__orb {
  top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 4px; color: #2b1a0f;
  background: linear-gradient(#f0cf8a, #b98a42);
  box-shadow: inset 0 0 0 1.5px #120a06, inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .55);
  transition: translate .55s cubic-bezier(.22, 1, .36, 1), background .4s ease;
}
[data-sky="day"] .sky-toggle__orb { translate: 32px 0; }
.sky-toggle__orb .ico { width: 15px; height: 15px; }
.sky-toggle:hover .sky-toggle__orb { background: linear-gradient(#f6dca2, #c99a52); }

/* ---------- Σκόνη (αντί για αστεράκια) ---------- */
.sparkle { display: none !important; }
.dust { position: fixed; inset: 0; z-index: 45; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Header: ομαλό κόλλημα επάνω και ομαλή αλλαγή μεγέθους στο όνομα ---------- */
.site-header { transition: translate .75s cubic-bezier(.22, 1, .36, 1) !important; }
.site-header.is-swing .site-header__inner { animation: none !important; }
.hero-modern .site-header__inner {
  transition: opacity .8s ease, translate .9s cubic-bezier(.22, 1, .36, 1), height .6s cubic-bezier(.22, 1, .36, 1),
    margin-top .6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s ease !important;
}
.hero-modern .site-header__inner::before, .hero-modern .site-header__inner::after { opacity: 1 !important; }
body.hero-modern.header-stuck .site-header__inner { height: 50px; margin-top: 6px; }
.hero-modern .masthead__name { scale: 1 !important; transition: font-size .6s cubic-bezier(.22, 1, .36, 1), color .35s ease !important; }
body.hero-modern.header-stuck .masthead__name { font-size: clamp(17px, 1.7vw, 21px); }
@media (max-width: 720px) { body.hero-modern.header-stuck .site-header__inner { height: 46px; margin-top: 4px; } }

/* ---------- Menu: κάρτες που «μοιράζονται» ομαλά, ήδη από το πρώτο άνοιγμα ---------- */
/* (το transform των καρτών είναι !important, οπότε η κίνηση γίνεται με translate/rotate/scale) */
.nav .card-link { will-change: translate, rotate, scale, opacity; }
body.menu-open .nav .card-link { animation: deal17 .9s cubic-bezier(.16, 1, .3, 1) both !important; animation-delay: calc(.08s + var(--i) * .07s) !important; }
@keyframes deal17 {
  from { opacity: 0; translate: 0 70vh; rotate: -26deg; scale: .85; }
  60% { opacity: 1; }
  to { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }
}
.nav__foot { display: none !important; }

/* ---------- Αρχική: «Design meets code» στο κέντρο, μικρότερο κείμενο ---------- */
.ds-about .sec-head { margin-inline: auto; text-align: center; }
.ds-about .sec-num { justify-content: center; }
.ds-about__grid { justify-items: center; }
.ds-about__text { max-width: 1000px !important; width: 100%; margin-inline: auto; text-align: center; }
.ds-about .ds-statement { font-size: clamp(16px, 1.25vw, 19px) !important; line-height: 1.75 !important; }
.ds-about .ds-statement::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.ds-about .ds-actions { justify-content: center; }

/* ---------- Επικεφαλίδες σελίδων: στο κέντρο, με προαιρετικό video φόντου ---------- */
.page-hero--simple .sec-head { margin-inline: auto; text-align: center; justify-items: center; }
.page-hero--simple .page-hero__desc { margin-inline: auto; }
.page-hero--simple .sec-head { max-width: 100%; }
.page-hero--simple .sec-title { max-width: 100%; overflow-wrap: anywhere; hyphens: manual; }
@media (max-width: 560px) { .page-hero--simple .sec-title { font-size: clamp(30px, 9vw, 52px) !important; line-height: 1.08 !important; } }
@media (max-width: 720px) { .device__blank { font-size: clamp(16px, 4.6vw, 28px); overflow-wrap: normal !important; } }   /* σπάει μόνο στις τελείες/παύλες */
body.archive { max-width: none; margin: 0; }
/* φάκελος κατηγορίας: σχεδόν όλο το πλάτος, με λίγο κενό αριστερά/δεξιά */
.cat-folder { --side: clamp(16px, 3.5vw, 60px); width: calc(100vw - 2 * var(--side)); margin-left: calc(50% - 50vw + var(--side)); }
.cat-folder .cat-tabs { padding-inline: clamp(12px, 2vw, 32px); }
.cat-folder .cat-tab { transform: none !important; }   /* μόνο το translate του v16 στο hover, όχι και το παλιό translateY */
.cat-folder .cat-tab.is-active:hover { translate: 0 0; filter: none; }   /* το ενεργό αυτάκι μένει στη θέση του */
.cat-sheet { border-radius: 0 0 10px 10px; padding-inline: clamp(16px, 3vw, 56px); }   /* το WP βάζει .archive στο body των κατηγοριών → παλιός κανόνας 1320px στένευε όλη τη σελίδα */
html, body { overflow-x: clip; }   /* τα full-width κομμάτια βγαίνουν έξω από το main χωρίς οριζόντιο scroll */
main.ds, .cat-page { overflow-x: visible !important; }
.about-intro { text-align: center; }
.about-intro > * { margin-inline: auto !important; max-width: 1120px; }
.about-intro .ds-actions, .about-intro .ds-stats { justify-content: center; }
.about-intro .about-hero__grid { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; }
.about-intro .about-hero__grid > *, .about-intro .about-content, .about-intro .about-content p { margin-inline: auto !important; }
.about-intro .about-hero__grid > * { width: 100%; }
.about-intro .about-content p { max-width: 1040px !important; }
.about-intro .ds-stats { max-width: 1120px; margin-top: clamp(56px, 6vw, 90px) !important; }
.page-hero--simple .sec-head { margin-bottom: 0; }
.page-about .page-hero--simple { padding-bottom: clamp(24px, 3vw, 40px) !important; }
.page-hero--video { position: relative; isolation: isolate; display: grid; align-content: center; min-height: clamp(360px, 62vh, 680px); }
.page-hero__bg { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; overflow: hidden; }
.page-hero__bg video { width: 100%; height: 100%; object-fit: cover; filter: sepia(.45) saturate(.9) brightness(.5); }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 12, 7, .15), rgba(20, 12, 7, .7)), linear-gradient(transparent 70%, rgba(20, 12, 7, .9)); }
.page-hero--video .sec-title, [data-sky="day"] .page-hero--video .sec-title { color: #f3e3c2 !important; text-shadow: 0 3px 16px rgba(0, 0, 0, .65); }
.page-hero--video .page-hero__desc, [data-sky="day"] .page-hero--video .page-hero__desc { color: rgba(243, 227, 194, .9) !important; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
[data-sky="day"] .page-hero__bg::after { background: radial-gradient(ellipse at center, rgba(60, 36, 18, .1), rgba(60, 36, 18, .6)), linear-gradient(transparent 70%, rgba(233, 214, 174, .95)); }

/* ---------- About: μεγαλύτερες εικόνες, ολόκληρες (χωρίς κόψιμο) ---------- */
@media (min-width: 861px) {
  .service { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .service:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
.service__body { max-width: 72ch !important; }
.service__media, .service:nth-child(even) .service__media { padding: clamp(18px, 3.4vw, 46px) !important; }
.service__media > img { aspect-ratio: auto !important; height: auto !important; object-fit: contain !important; }

/* ---------- Λίστα projects: grid με 4άδες ---------- */
.prows { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 2.6vw, 40px) clamp(16px, 2vw, 30px); max-width: none; }
.prow, .prow:first-child { position: relative; border: 0 !important; }
.prow__link { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 14px; height: 100%; padding: 0 !important; }
.prow__no { position: absolute; z-index: 2; top: 10px; left: 12px; font-size: 18px !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); }
/* εικόνα κάρτας: καθαρό «φωτογραφικό» κάδρο σε όλο το πλάτος (χωρίς το σκισμένο mask που τη μίκραινε) */
.prow__media {
  width: 100%; aspect-ratio: 4 / 3 !important; -webkit-mask: none !important; mask: none !important;
  background: #d9bf8c; border: 6px solid #f3e4c2; outline: 1px solid rgba(43, 26, 15, .35); border-radius: 2px;
  box-shadow: 0 14px 26px -16px rgba(60, 34, 14, .7); transition: box-shadow .5s ease, translate .5s cubic-bezier(.2, .8, .2, 1);
}
.prow__link:hover .prow__media { translate: 0 -4px; box-shadow: 0 22px 34px -18px rgba(60, 34, 14, .75); }
.prow__mono {
  font-size: clamp(34px, 3.2vw, 54px) !important; color: #5a3a22 !important; letter-spacing: .04em;
  background: radial-gradient(ellipse at center, rgba(255, 245, 220, .45), transparent 70%);
  box-shadow: inset 0 0 0 1.5px rgba(90, 58, 34, .35), inset 0 0 0 7px #d9bf8c, inset 0 0 0 8.5px rgba(90, 58, 34, .2);
}
.prow__no {
  top: 14px !important; left: 14px !important; padding: 5px 8px; font-size: 14px !important; line-height: 1;
  color: #f3e4c2 !important; background: #8e2f1c; border-radius: 2px; text-shadow: none !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.prow__text { gap: 8px; }
.prow__title { font-size: clamp(19px, 1.45vw, 25px) !important; }
.prow__meta { font-size: 10.5px !important; gap: 4px 12px; }
.prow__go { margin-top: auto; align-self: flex-start; padding: 10px 16px !important; font-size: 11px !important; }
@media (max-width: 1100px) { .prows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .prows { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prow__no { display: block !important; } }
@media (max-width: 480px) { .prows { grid-template-columns: minmax(0, 1fr); } }
.related .prows { padding: clamp(20px, 3vw, 40px) !important; }

/* ---------- Σελίδα project: όλο το πλάτος ---------- */
.work-page--v16 .section { max-width: none; padding-left: clamp(16px, 4vw, 64px); padding-right: clamp(16px, 4vw, 64px); }
.work-page--v16 .ledger { width: min(1320px, 100%); }
.work-page--v16 .related .sec-head { margin-inline: auto; text-align: center; }
.work-page--v16 .related__back { text-align: center; }

/* ---------- Συσκευές: laptop → tablet → κινητό ---------- */
.devices { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(36px, 5vw, 90px) clamp(30px, 5vw, 90px); padding-top: clamp(20px, 3vw, 50px) !important; }
.device { position: relative; margin: 0; }
.device__frame { position: relative; background: linear-gradient(#2a2724, #121110); box-shadow: inset 0 0 0 2px #3d3833, 0 40px 60px -34px rgba(0, 0, 0, .95); }
.device__screen { position: relative; overflow: hidden; background: #000; }
.device__screen > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.device__blank { display: grid; place-items: center; padding: 8%; text-align: center; background: var(--parch) 0 0 / 500px, #e9d6ae; background-blend-mode: multiply; color: #2b1a0f; font: 400 clamp(24px, 3.4vw, 52px)/1.1 var(--west); overflow-wrap: anywhere; }
.device__cam { position: absolute; z-index: 2; left: 50%; translate: -50% 0; border-radius: 50%; background: #3a4a5a; }

.device--laptop { flex: 1 1 100%; max-width: min(1400px, (100vh - 150px) * 1.5); }   /* χωράει ολόκληρο στην οθόνη */
.device--laptop .device__frame { padding: clamp(14px, 1.8vw, 26px) clamp(14px, 1.8vw, 26px) clamp(18px, 2.2vw, 32px); border-radius: 20px 20px 6px 6px; }
.device--laptop .device__cam { top: 7px; width: 6px; height: 6px; }
.device--laptop .device__screen { aspect-ratio: 16 / 10; border-radius: 4px; }
.device__base { position: relative; height: clamp(14px, 1.6vw, 24px); margin: 0 -5%; border-radius: 0 0 24px 24px; background: linear-gradient(#d6cfc4, #8f877b); box-shadow: 0 20px 30px -14px rgba(0, 0, 0, .8); }
.device__base span { position: absolute; left: 50%; top: 0; width: 16%; height: 42%; translate: -50% 0; border-radius: 0 0 10px 10px; background: #a59d91; }

.device--tablet { width: min(640px, 100%); }
.device--tablet .device__frame { padding: clamp(16px, 2vw, 26px); border-radius: clamp(22px, 2.6vw, 34px); }
.device--tablet .device__cam { top: clamp(6px, .8vw, 10px); width: 6px; height: 6px; }
.device--tablet .device__screen { aspect-ratio: 4 / 3; border-radius: 8px; }

.device--phone { width: min(290px, 64vw); }
.device--phone .device__frame { padding: 11px; border-radius: 44px; }
.device--phone .device__screen { aspect-ratio: 9 / 19.5; border-radius: 34px; }
.device--phone .device__cam { top: 20px; width: 70px; height: 20px; border-radius: 12px; background: #000; }
.device--phone .device__screen img, .device--phone .device__screen video { object-position: 50% 0; }   /* mobile screenshot: φαίνεται από την κορυφή */

/* Gallery του project: όλες οι εικόνες σε ίδιο οριζόντιο ορθογώνιο κάδρο (16:10) */
.work-shot { aspect-ratio: 16 / 10; background: #1a120c; }
.work-shot img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 0; transition: scale .6s cubic-bezier(.2, .8, .2, 1); }
.work-shot__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work-shot__btn:hover img, .work-shot__btn:focus-visible img { scale: 1.04; }
.work-shot__btn:focus-visible { outline: 2px dashed #f0cf8a; outline-offset: -6px; }
.work-shot__zoom {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20, 12, 7, .72); color: #f3e3c2; font: 400 20px/1 var(--display); opacity: 0; translate: 0 6px; transition: opacity .3s ease, translate .3s ease;
}
.work-shot__btn:hover .work-shot__zoom, .work-shot__btn:focus-visible .work-shot__zoom { opacity: 1; translate: 0 0; }
@media (hover: none) { .work-shot__zoom { opacity: .9; translate: 0 0; } }

/* Lightbox: η εικόνα ολόκληρη (χωρίς κόψιμο) σε σκοτεινό φόντο */
.shot-box { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.shot-box[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(6px, 2vw, 24px); padding: clamp(50px, 6vh, 70px) clamp(8px, 2vw, 30px); animation: shotFade .35s ease; }
.shot-box::backdrop { background: rgba(12, 7, 4, .9); backdrop-filter: blur(4px); }
@keyframes shotFade { from { opacity: 0; } }
.shot-box__fig { margin: 0; display: grid; justify-items: center; gap: 12px; min-height: 0; max-height: 100%; }
.shot-box__fig img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); }
.shot-box__fig img.is-in { animation: shotIn .4s cubic-bezier(.16, 1, .3, 1); }
@keyframes shotIn { from { opacity: 0; scale: .96; } }
.shot-box__count { font: 600 12px/1 var(--display); letter-spacing: .2em; color: rgba(243, 227, 194, .75); }
.shot-box__nav, .shot-box__close {
  display: grid; place-items: center; border: 2px solid rgba(243, 227, 194, .5); border-radius: 50%; background: rgba(43, 26, 15, .75); color: #f3e3c2; cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, scale .3s ease;
}
.shot-box__nav { width: clamp(42px, 4vw, 56px); height: clamp(42px, 4vw, 56px); font: 400 clamp(26px, 2.6vw, 34px)/1 var(--display); padding-bottom: 4px; }
.shot-box__nav:hover, .shot-box__close:hover { background: #8e2f1c; border-color: #f3e3c2; scale: 1.06; }
.shot-box__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font: 400 28px/1 var(--display); }
.shot-box.is-single .shot-box__nav, .shot-box.is-single .shot-box__count { visibility: hidden; }
@media (max-width: 600px) {
  .shot-box[open] { grid-template-columns: minmax(0, 1fr); padding-inline: 10px; }
  .shot-box__nav { position: absolute; bottom: 16px; }
  .shot-box__nav--prev { left: calc(50% - 64px); }
  .shot-box__nav--next { right: calc(50% - 64px); }
  .shot-box__fig { grid-row: 1; }
  .shot-box__fig img { max-height: calc(100dvh - 190px); }
}
html:has(.shot-box[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .shot-box[open], .shot-box__fig img.is-in { animation: none; } }

/* ---------- Menu: κρεμαστή λάμπα πόκερ που φωτίζει το τραπέζι ---------- */
.nav__table { overflow: hidden; }
.nav__lamp { position: absolute; z-index: 1; top: 0; left: 50%; width: clamp(170px, 16vw, 240px); translate: -50% 0; pointer-events: none; transform-origin: 50% 0; }
.nav__lamp svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.lamp-bulb { animation: lampFlicker 7s steps(1) infinite; }
@keyframes lampFlicker { 0%, 100% { opacity: 1; } 41% { opacity: .82; } 42% { opacity: 1; } 77% { opacity: .9; } 78% { opacity: 1; } }
/* φως που πέφτει από τη λάμπα στην τσόχα */
.nav__lamp-light {
  position: absolute; z-index: -1; left: 50%; top: 78%; width: min(1500px, 92vw); height: 90vh; translate: -50% 0;
  background: radial-gradient(ellipse 50% 55% at 50% 52%, rgba(255, 214, 130, .26), rgba(255, 200, 110, .1) 45%, transparent 72%),
    linear-gradient(to bottom, rgba(255, 214, 130, .12), transparent 60%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); mix-blend-mode: screen; filter: blur(10px);
}
body.menu-open .nav__lamp { animation: lampDrop 1.1s cubic-bezier(.16, 1, .3, 1) .05s both, lampSway 6s ease-in-out 1.2s infinite; }
@keyframes lampDrop { from { opacity: 0; translate: -50% -100%; } to { opacity: 1; translate: -50% 0; } }
@keyframes lampSway { 0%, 100% { rotate: 0deg; } 50% { rotate: 1.2deg; } }
.nav__top { margin-top: auto !important; position: relative; z-index: 2; }
.nav__cards { margin-bottom: auto; padding-bottom: clamp(10px, 3vh, 40px) !important; position: relative; z-index: 2; }
.nav__table > .nav__top { padding-top: clamp(150px, 22vh, 240px) !important; }
@media (max-width: 720px) {
  .nav__lamp { width: 120px; }
  .nav__table > .nav__top { padding-top: 96px !important; }
  .nav__cards { padding-bottom: 14px !important; }
}
@media (max-height: 640px) { .nav__lamp { display: none; } .nav__table > .nav__top { padding-top: 0 !important; } }


/* ---------- Αρχική: χωρίς τις γραμμές γύρω από το «Web designer & web developer» ---------- */
.hero-m__role::before, .hero-m__role::after { display: none !important; }

/* ---------- Μέρα: τα χρυσά γράμματα γίνονται καφέ για να διαβάζονται ---------- */
/* (το hero της αρχικής έχει σκούρο video και τη μέρα → το χρυσό μένει· τα νούμερα κάτω πέφτουν σε ανοιχτό φόντο) */
[data-sky="day"] .hero-m__stats b { color: #6b3f1d !important; text-shadow: none !important; }
[data-sky="day"] .hero-m__stats span { color: #4a2c18 !important; }
[data-sky="day"] .saloon__rules b { color: #8a4b1c !important; text-shadow: none !important; }
[data-sky="day"] .divider__no { color: rgba(74, 44, 24, .5) !important; -webkit-text-fill-color: currentColor; }
[data-sky="day"] .slot__msg { color: #4a2c18 !important; text-shadow: none !important; }
[data-sky="day"] .sec-title em, [data-sky="day"] .sec-num, [data-sky="day"] .sec-num span { color: #8a4b1c !important; -webkit-text-fill-color: currentColor; }

/* ---------- Contact: μικρότερο κενό ανάμεσα στον τίτλο και στα στοιχεία/τηλεγράφημα ---------- */
.contact-page .contact-body { padding-top: clamp(20px, 2.6vw, 44px) !important; }
.contact-page .ds-contact__grid { margin-top: 0 !important; }
@media (max-width: 480px) { .contact-page .ds-contact__list a, .contact-page .ds-contact__list span { font-size: clamp(16px, 5vw, 22px) !important; overflow-wrap: anywhere; } }   /* το email να χωράει στο κινητό */

/* ---------- Contact: social εικονίδια όπως στο footer ---------- */
.contact-socials { justify-content: flex-start; margin-top: 26px; }
[data-sky="day"] .social-ico { color: #4a2c18 !important; border-color: rgba(74, 44, 24, .45) !important; background: rgba(74, 44, 24, .05) !important; }
[data-sky="day"] .social-ico:hover, [data-sky="day"] .social-ico:focus-visible { color: #f3e3c2 !important; background: #6b3f1d !important; border-color: #6b3f1d !important; }

/* ---------- Tablet (721–900px): η αφίσα επάνω δεξιά, το όνομα από κάτω — να μην επικαλύπτονται ---------- */
@media (min-width: 721px) and (max-width: 900px) {
  .hero-modern .hero-m { top: auto !important; bottom: 14vh; transform: none !important; }
  .wanted--hero { --pw: max(130px, min(34vw, (86vh - 420px) / 1.75)); }   /* μικραίνει σε χαμηλές οθόνες ώστε να χωράει πάνω από το όνομα */
}
/* Κινητό: πρώτα τα γράμματα (επάνω) και η αφίσα WANTED από κάτω τους, στο κέντρο */
@media (max-width: 720px) {
  .hero-modern .hero-m { top: calc(var(--header-h) + 3.5vh) !important; bottom: auto !important; transform: none !important; }
  .wanted--hero,
  .js .hero-modern:not(.is-loaded) .wanted--hero {
    left: 50% !important; right: auto !important; top: auto !important; bottom: max(18px, 7svh) !important;
    translate: -50% 0 !important; rotate: 1.5deg;
    --pw: clamp(120px, min(54vw, (100svh - var(--header-h) - 380px) / 1.55), 230px);
  }
  @keyframes posterSway { 0%, 100% { rotate: 1.5deg; } 50% { rotate: -1.5deg; } }
}
@media (max-width: 720px) and (max-height: 600px) { .wanted--hero { display: none; } }
@media (min-width: 721px) and (max-width: 900px) and (max-height: 740px) { .wanted--hero { display: none; } }

/* Menu με 6 κάρτες: συμμετρική «βεντάλια» και στο κινητό 3 σειρές των 2 */
.nav .card-link:nth-child(1), .nav .card-link:nth-child(6) { --ty: 18px; }
.nav .card-link:nth-child(2), .nav .card-link:nth-child(5) { --ty: 6px; }
.nav .card-link:nth-child(3), .nav .card-link:nth-child(4) { --ty: 0px; }
@media (max-width: 720px) {
  .nav .card-link { --ty: 0px !important; }
  .nav .card-link:last-child { grid-column: auto; }
  .nav .card-link { transform: rotate(calc((var(--i) - 2.5) * 1.6deg)) !important; }
  .nav__table { overflow: hidden auto !important; }   /* δίχτυ ασφαλείας: αν δεν χωράνε, κυλάνε μέσα στο τραπέζι */
}
@media (max-width: 720px) and (max-height: 760px) {
  .nav .card-link { width: min(30vw, 112px) !important; }
  .nav__cards { gap: 10px !important; }
  .nav__lamp { width: 100px !important; }
  .nav__table > .nav__top { padding-top: 76px !important; }
}

/* ---------- Preloader: αστέρι σερίφη (αντί για τα πιστόλια) ---------- */
.preloader__star {
  width: clamp(96px, 12vw, 140px); height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 22px rgba(232, 176, 79, .25));
  animation: starIn .8s cubic-bezier(.2, .9, .3, 1.3) both, starSpin 2.4s cubic-bezier(.45, 0, .55, 1) .9s infinite;
}
@keyframes starIn { from { opacity: 0; scale: .5; translate: 0 -40px; } }
@keyframes starSpin { 0% { transform: perspective(400px) rotateY(0deg); } 60%, 100% { transform: perspective(400px) rotateY(360deg); } }
.preloader .pistols--load, .preloader__bang { display: none !important; }

/* Σελίδα project: λίγο μικρότερος τίτλος (τα domain είναι μακριές λέξεις) */
.single-ef_project .page-hero .sec-title { font-size: clamp(28px, 4.2vw, 64px) !important; }
@media (max-width: 560px) { .single-ef_project .page-hero .sec-title { font-size: clamp(22px, 7vw, 36px) !important; } }

/* ---------- Recommendations: γράμματα καρφιτσωμένα στον τοίχο + φόρμα «Write a letter» ---------- */
.reco-board { padding-top: 0 !important; }
.reco-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(26px, 3vw, 44px) clamp(22px, 2.6vw, 40px); max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 40px); }
.reco {
  position: relative; display: block; flex: 0 1 400px; min-width: 0;
  padding: clamp(34px, 3vw, 46px) clamp(24px, 2.4vw, 36px) clamp(24px, 2.4vw, 32px);
  color: #2b1a0f; background: var(--parch) 0 0 / 420px, #ead6ab; background-blend-mode: multiply;
  box-shadow: inset 0 0 60px rgba(120, 66, 20, .3), 0 18px 34px -18px rgba(0, 0, 0, .65);
  rotate: var(--tilt, 0deg); transition: rotate .5s cubic-bezier(.2, .8, .2, 1), translate .5s cubic-bezier(.2, .8, .2, 1);
}
.reco:hover { rotate: 0deg; translate: 0 -4px; }
.reco__pin { position: absolute; top: 12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0cf8a, #8a6a3a 60%, #4a3418); box-shadow: 0 3px 4px rgba(0, 0, 0, .45); }
.reco__quote { position: absolute; top: 6px; left: 16px; font: 400 76px/1 var(--west); color: rgba(142, 47, 28, .28); pointer-events: none; }
.reco__text { position: relative; font: italic 400 clamp(15.5px, 1.05vw, 17.5px)/1.7 var(--body); }
.reco__text p { margin: 0 0 .8em; }
.reco__from { display: grid; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed rgba(43, 26, 15, .35); }
.reco__sign { font: 400 clamp(30px, 2.4vw, 38px)/1 "Sacramento", cursive; color: #2b1a0f; }
.reco__role { font: 600 11px/1.4 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #8e2f1c; }
/* μεγάλες επιστολές: κομμένες στις ~9 γραμμές, με «Read the full letter» → ανοίγει μεγάλο γράμμα */
.reco__text { max-height: calc(1.7em * 9); overflow: hidden; }
.reco.is-long .reco__text { -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.reco__more { display: none; align-items: center; gap: 8px; margin-top: 10px; font: 600 11.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #8e2f1c; }
.reco__more i { font-style: normal; transition: translate .4s cubic-bezier(.2, .9, .3, 1.3); }
.reco.is-long { cursor: pointer; }
.reco.is-long .reco__more { display: inline-flex; }
.reco.is-long:hover .reco__more i, .reco.is-long:focus-visible .reco__more i { translate: 5px 0; }
.reco.is-long:focus-visible { outline: 2px dashed #f0cf8a; outline-offset: 6px; }

.reco-modal {
  width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; overflow: visible;
  background: transparent; color: #2b1a0f;
}
.reco-modal::backdrop { background: rgba(15, 9, 5, .78); backdrop-filter: blur(3px); }
.reco-modal[open] { animation: recoOpen .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes recoOpen { from { opacity: 0; translate: 0 24px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
.reco-modal__paper {
  position: relative; max-height: min(86vh, 900px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(46px, 5vw, 64px) clamp(22px, 5vw, 64px) clamp(30px, 4vw, 48px);
  background: var(--parch) 0 0 / 420px, #ead6ab; background-blend-mode: multiply;
  box-shadow: inset 0 0 80px rgba(120, 66, 20, .32), 0 40px 80px -30px rgba(0, 0, 0, .8);
  scrollbar-width: thin; scrollbar-color: #8e2f1c transparent;
}
.reco-modal__paper .reco__text { max-height: none; overflow: visible; -webkit-mask: none; mask: none; font-size: clamp(16.5px, 1.25vw, 19px); }
.reco-modal__paper .reco__more { display: none !important; }
.reco-modal__paper .reco__quote { top: 14px; left: 22px; font-size: 96px; }
.reco-modal__close {
  position: absolute; z-index: 2; top: -16px; right: -16px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid #f3e4c2;
  background: #8e2f1c; color: #f3e4c2; font: 400 26px/1 var(--display); cursor: pointer; box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
  transition: rotate .4s ease, background-color .3s ease;
}
.reco-modal__close:hover { rotate: 90deg; background: #a63a24; }
@media (max-width: 560px) { .reco-modal__close { top: 8px; right: 8px; } }
html:has(.reco-modal[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .reco-modal[open] { animation: none; } }
.reco-empty { text-align: center; font: italic 18px/1.6 var(--body); opacity: .8; }

.reco-write { max-width: 860px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 40px); }
.reco-write .sec-head { text-align: center; margin-bottom: clamp(24px, 3vw, 40px); }
.reco-write .sec-lead { margin-inline: auto; }
.reco-form form { display: grid; gap: 18px; }
.reco-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.reco-consent { display: flex; gap: 10px; align-items: flex-start; font: 400 15px/1.5 var(--body); color: #4a3220; cursor: pointer; }
.reco-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: #8e2f1c; }
.reco-note { margin: 0 0 18px; padding: 14px 18px; border: 2px dashed currentColor; font: 400 16px/1.5 var(--body); }
.reco-note--ok { color: #2d5130; }
.reco-note--err { color: #a63a24; }
.reco-again { margin: 0; text-align: center; font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.reco-again a { color: #2b1a0f; }
@media (max-width: 720px) { .reco { rotate: 0deg; } }

/* ---------- Μειωμένη κίνηση ---------- */
@media (prefers-reduced-motion: reduce) {
  body.menu-open .nav .card-link { animation: none !important; }
  .dust { display: none; }
}
