/* FORTUNA / Spatial UI 2026-10-23 — visual skin over real PHP site.
   No modifications to portfolio ingestion, PDF pages, brief submission or schema. */
:root {
  --sp-ink:#20211f; --sp-muted:#6d6b65; --sp-milk:#f3f0e9;
  --sp-warm:#ece6db; --sp-bronze:#9a7448; --sp-olive:#34382f;
  --sp-curve:cubic-bezier(.22,1,.36,1);
  --sp-edge:rgba(255,255,255,.62);
  --sp-glass:rgba(248,245,238,.73);
  --sp-shadow:0 24px 64px rgba(37,32,25,.15),inset 0 1px 0 rgba(255,255,255,.86);
}
html {scroll-behavior:smooth; scroll-padding-top:105px;}
html,body { max-width:100%; }
body { background:#f3f0e9; color:var(--sp-ink); overflow-x:clip; }
body,button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
:where(button,a,input,textarea,select):focus-visible { outline:2px solid var(--sp-bronze); outline-offset:3px; }
/* One full-width floating glass header as in the approved prototype. */
html body .topbar {
  position:fixed !important; inset:8px 16px auto !important;
  width:calc(100% - 32px) !important; max-width:none !important;
  height:76px !important; min-height:0 !important;
  display:flex !important; flex-direction:row !important; align-items:center !important;
  gap:clamp(12px,2vw,36px) !important;
  padding:8px clamp(14px,2.1vw,35px) !important;
  margin:0 !important; box-sizing:border-box !important;
  border:1px solid rgba(255,255,255,.82) !important;
  border-radius:27px !important;
  background:linear-gradient(135deg,rgba(255,255,255,.54),rgba(255,255,255,.10) 48%,rgba(255,255,255,.34)),rgba(243,240,233,.71) !important;
  -webkit-backdrop-filter:blur(25px) saturate(133%) !important;
  backdrop-filter:blur(25px) saturate(133%) !important;
  box-shadow:0 16px 46px rgba(28,29,27,.13),inset 0 1px 0 rgba(255,255,255,.9) !important;
  isolation:isolate; z-index:1000 !important;
  transition:background-color .3s ease,box-shadow .3s ease,transform .3s ease;
}
html body .topbar::before { content:""; pointer-events:none; position:absolute; inset:1px; border-radius:inherit; background:radial-gradient(closest-side at var(--spatial-x,20%) var(--spatial-y,0%),rgba(255,255,255,.44),transparent 80%); opacity:.6; z-index:-1; }
html body .topbar.spatial-scrolled {background-color:rgba(243,240,233,.88) !important;box-shadow:0 10px 30px rgba(28,29,27,.10),inset 0 1px 0 white !important;}
html body .topbar a.brand.fortuna-text-logo { align-self:center !important; margin-right:auto !important; max-width:none !important; flex-shrink:0 !important; }
html body .topbar .nav {display:flex !important; flex:0 1 auto !important; align-items:center !important; gap:clamp(14px,2.2vw,36px) !important; margin:0 !important; padding:0 !important; background:transparent !important; border:0 !important; box-shadow:none !important; position:static !important; width:auto !important; height:auto !important; transform:none !important; }
html body .topbar .nav > a { text-decoration:none !important; white-space:nowrap !important; font-size:clamp(12px,0.9794vw,14px) !important; font-weight:600 !important; letter-spacing:.075em !important; text-transform:uppercase !important; color:#252622 !important; border:0 !important; padding:11px 2px !important; background:none !important; transition:color .22s ease; }
html body .topbar .nav > a:hover { color:var(--sp-bronze) !important; }
html body .topbar .top-cta {flex:0 0 auto !important; white-space:nowrap !important; display:inline-flex !important; justify-content:center !important; align-items:center !important; gap:12px !important; min-height:44px !important; margin:0 !important; padding:12px 21px !important; border:1px solid rgba(255,255,255,.85) !important; border-radius:999px !important; background:linear-gradient(125deg,rgba(255,255,255,.70),rgba(255,255,255,.25)) !important; color:#292a25 !important; box-shadow:0 5px 17px rgba(38,34,28,.06),inset 0 1px 0 rgba(255,255,255,.92) !important; font-size:13px !important; font-weight:600 !important; letter-spacing:.04em; text-transform:uppercase !important; transition:transform .27s var(--sp-curve),background-color .27s ease !important; }
html body .topbar .top-cta:hover {transform:translateY(-2px); background-color:rgba(255,255,255,.80) !important;}
html body .topbar .menu-btn {display:none !important;}
html body .topbar .spatial-mobile-cta {display:none !important;}
/* Main hero: keep real rotating pictures, add spatial panel on top. */
html body .hero { position:relative !important; display:flex !important; align-items:center !important; isolation:isolate; min-height:100svh !important; height:auto !important; margin:0 !important; padding:145px clamp(20px,5vw,82px) 92px !important; overflow:hidden !important; background:#c3b8a6; }
html body .hero .hero-slideshow {position:absolute !important; inset:-3% !important; overflow:hidden !important; z-index:-2 !important; transform:translate3d(0,var(--spatial-scrollY,0px),0); will-change:transform;}
html body .hero .hero-slide {height:100% !important; width:100% !important; object-fit:cover !important;}
html body .hero::before {content:"" !important;display:block !important;position:absolute !important;inset:0 !important;background:linear-gradient(90deg,rgba(32,33,31,.18),rgba(32,33,31,0) 74%) !important;pointer-events:none !important;z-index:-1 !important;filter:none !important;}
html body .hero::after {content:"" !important;display:block !important;position:absolute !important;inset:0 !important;background:linear-gradient(180deg,rgba(30,29,24,.01) 55%,rgba(30,29,24,.35)) !important;pointer-events:none !important;z-index:-1 !important;filter:none !important;}
html body .hero--with-slides .hero-slideshow::before,html body .hero--with-slides .hero-slideshow::after {opacity:0 !important;content:none !important;}
html body .hero .hero-body {position:relative !important;z-index:2 !important;width:min(740px,100%) !important;max-width:100% !important;margin:0 !important;padding:clamp(28px,4vw,59px) !important;display:block !important;border-radius:30px !important; border:1px solid rgba(255,255,255,.72) !important; background:linear-gradient(132deg,rgba(255,255,255,.73),rgba(245,242,235,.46) 70%),rgba(244,240,234,.20) !important; -webkit-backdrop-filter:blur(27px) saturate(132%);backdrop-filter:blur(27px) saturate(132%); box-shadow:0 34px 75px rgba(36,31,24,.16),inset 0 1px 0 rgba(255,255,255,.86);color:var(--sp-ink) !important; }
html body .hero .hero-kicker {font-size:13px !important;letter-spacing:.16em !important;text-transform:uppercase !important;color:#8e6e4e !important;margin:0 0 28px !important;}
html body .hero h1,html body .hero #hero-title {font-family:'Helvetica Neue',Arial,sans-serif !important; font-weight:350 !important; font-size:clamp(44px,5.2vw,84px) !important; line-height:1.06 !important; letter-spacing:-.062em !important;color:#242520 !important;text-shadow:none !important;margin:0 0 27px !important;max-width:100% !important;}
html body .hero .hero-bottom {display:flex !important; flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;gap:24px !important;margin:0 !important;color:#4d4b46 !important;}
html body .hero .hero-bottom p {font-size:clamp(14px,1.2vw,17px) !important;line-height:1.7 !important;max-width:440px !important;color:#51524b !important;margin:0 !important;}
html body .hero .hero-bottom .arrow-link {display:inline-flex !important;align-items:center !important;gap:18px !important;padding:13px 24px !important;min-height:47px !important;border:1px solid rgba(255,255,255,.75) !important;border-radius:999px !important;background:linear-gradient(120deg,rgba(147,110,73,.83),rgba(117,87,58,.72)) !important; color:white !important;font-size:14px !important; letter-spacing:0 !important;box-shadow:0 10px 26px rgba(67,46,25,.19),inset 0 1px 0 rgba(255,255,255,.35) !important;backdrop-filter:blur(12px);transition:transform .3s var(--sp-curve),box-shadow .3s ease !important;}
html body .hero .hero-bottom .arrow-link:hover {transform:translateY(-2px);box-shadow:0 15px 28px rgba(67,46,25,.24) !important;}
html body .hero .hero-number {position:absolute !important;bottom:32px !important;left:clamp(22px,5vw,82px) !important;z-index:2 !important;font-size:12px !important;letter-spacing:.2em !important;color:#fff !important;}
/* Heading system and editorial sections. */
html body .projects-section,html body .services-section,html body .studio-section,html body .contacts-section {position:relative;scroll-margin-top:105px;}
html body .projects-section {background:linear-gradient(180deg,#f3f0e9 0%,#f9f6f0 58%,#f3f0e9 100%) !important;padding:105px clamp(20px,4.4vw,78px) 112px !important;}
html body .section-head {display:flex !important;align-items:end !important;justify-content:space-between !important;gap:24px !important;margin-bottom:30px !important;}
html body .section-head h2 {font-size:clamp(36px,4.6vw,69px) !important;line-height:1.04 !important;letter-spacing:-.055em !important;font-weight:400 !important;margin:7px 0 0 !important;}
html body .section-head > p {font-size:14px !important;line-height:1.7 !important;max-width:420px !important;color:#706e66 !important;}
html body .section-index {font-size:13px !important;letter-spacing:.20em !important;text-transform:uppercase !important;color:#9a7448 !important;}
/* Filter controls, keep original data-filter and JavaScript. */
html body .projects-section .filters {display:flex !important;flex-wrap:wrap !important;align-items:center !important;width:fit-content !important;max-width:100% !important;gap:6px !important;margin:0 0 30px !important;padding:6px !important;border:1px solid rgba(185,175,159,.23) !important;border-radius:20px !important;background:rgba(235,229,219,.50) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.56) !important;}
html body .projects-section .filter {min-height:40px !important;padding:10px 18px !important;border:1px solid transparent !important;border-radius:999px !important;background:transparent !important;box-shadow:none !important;font-size:14px !important;letter-spacing:0 !important;color:#6e6c64 !important;transition:background .25s ease,box-shadow .25s ease,color .25s ease !important;}
html body .projects-section .filter:hover {background:rgba(255,255,255,.42) !important;color:#292925 !important;}
html body .projects-section .filter.active {background:rgba(255,255,255,.87) !important;color:#242622 !important;box-shadow:0 4px 13px rgba(35,29,23,.09) !important;}
/* Retain the live Pinterest masonry ordering and original file-based cards. */
html body .masonry {column-gap:clamp(12px,1.3vw,21px) !important;}
html body .project-card {position:relative !important;isolation:isolate !important;display:block !important;border:1px solid rgba(255,255,255,.55) !important;border-radius:23px !important;overflow:hidden !important;break-inside:avoid; margin-bottom:clamp(12px,1.3vw,21px) !important;box-shadow:0 9px 26px rgba(35,31,25,.10) !important;transition:box-shadow .5s var(--sp-curve),transform .5s var(--sp-curve),border-color .3s ease !important;}
html body .project-card:hover {transform:translateY(-5px) !important;box-shadow:0 25px 48px rgba(35,31,25,.19) !important;border-color:rgba(255,255,255,.82) !important;}
html body .project-card .media-wrap {overflow:hidden !important;border-radius:inherit !important;}
html body .project-card img,html body .project-card video {display:block;transition:transform .85s var(--sp-curve) !important;}
html body .project-card:hover img,html body .project-card:hover video {transform:scale(1.055) !important;}
html body .project-card .card-overlay {position:absolute !important;top:auto !important;bottom:14px !important;left:14px !important;right:14px !important;width:auto !important;height:auto !important;min-height:0 !important;display:block !important;flex:none !important; padding:17px 19px !important;border-radius:16px !important;border:1px solid rgba(255,255,255,.36) !important; background:linear-gradient(125deg,rgba(40,38,34,.45),rgba(44,39,30,.26)) !important;-webkit-backdrop-filter:blur(18px) saturate(125%);backdrop-filter:blur(18px) saturate(125%);box-shadow:0 7px 21px rgba(12,12,10,.14),inset 0 1px 0 rgba(255,255,255,.18) !important; opacity:1 !important;transform:none !important;pointer-events:none;}
html body .project-card .card-overlay > span {color:rgba(255,255,255,.83) !important;letter-spacing:.10em !important;font-size:12px !important;}
html body .project-card .card-overlay h3 {color:#fff !important;font-size:clamp(15px,1.5vw,23px) !important;font-weight:400 !important;line-height:1.2 !important;letter-spacing:-.02em !important;margin:7px 0 0 !important;text-transform:none !important;overflow-wrap:anywhere;}
html body .project-card .card-overlay p {color:rgba(255,255,255,.82) !important;font-size:13px !important;margin:7px 0 0 !important;}
html body .editorial-card {border:1px solid rgba(255,255,255,.78) !important;border-radius:22px !important;box-shadow:0 10px 30px rgba(35,31,25,.08),inset 0 1px 0 rgba(255,255,255,.7) !important;}
/* Services become four airy glass tiles, not rigid list rows. */
html body .services-section {background:#34382f !important;color:#f7f4ed !important;padding:100px clamp(20px,4.4vw,78px) 110px !important;overflow:hidden;}
html body .services-section::before {content:"";position:absolute;inset:-30%;pointer-events:none;background:radial-gradient(ellipse at 25% 30%,rgba(184,148,107,.17),transparent 48%),radial-gradient(ellipse at 83% 83%,rgba(240,223,198,.08),transparent 42%);}
html body .services-section .section-head,html body .services-section .services-list,html body .services-section .button-light {position:relative;z-index:1;}
html body .services-section .section-head h2 {color:#faf8f2 !important;}
html body .services-section .section-head > p {color:#ccc9c1 !important;}
html body .services-section .services-list {display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:clamp(12px,1.15vw,20px) !important;margin:30px 0 !important;padding:0 !important;}
html body .services-section .service-row {min-width:0 !important;min-height:285px !important;display:flex !important;flex-direction:column !important;justify-content:space-between !important;align-items:flex-start !important;gap:20px !important;padding:27px 23px !important;margin:0 !important;border:1px solid rgba(255,255,255,.23) !important;border-radius:22px !important;background:linear-gradient(138deg,rgba(255,255,255,.18),rgba(255,255,255,.04) 65%) !important;box-shadow:0 16px 35px rgba(16,17,15,.12),inset 0 1px 0 rgba(255,255,255,.25) !important;color:#f8f5ed !important;-webkit-backdrop-filter:blur(15px) saturate(115%);backdrop-filter:blur(15px) saturate(115%);transition:transform .32s var(--sp-curve),background-color .32s ease,box-shadow .32s ease !important;}
html body .services-section .service-row:hover {transform:translateY(-6px) !important;background-color:rgba(255,255,255,.075) !important;box-shadow:0 22px 42px rgba(10,12,10,.17),inset 0 1px rgba(255,255,255,.25) !important;}
html body .services-section .service-row .service-num {font-size:14px !important;letter-spacing:.16em !important;color:#c7a981 !important;}
html body .services-section .service-row h3 {font-size:clamp(20px,1.9vw,29px) !important;line-height:1.16 !important;font-weight:400 !important;letter-spacing:-.045em !important;margin:auto 0 0 !important;color:#f7f2e7 !important;}
html body .services-section .service-row strong {font-size:14px !important;font-weight:500 !important;color:#e9c9a5 !important;}
html body .services-section .button-light {margin-top:17px !important;border-radius:999px !important;}
/* Two-column studio, using a real photo from the portfolio. */
html body .studio-section {display:grid !important;grid-template-columns:minmax(220px,.7fr) minmax(280px,1.12fr) minmax(280px,1.12fr) !important;align-items:center !important;gap:clamp(20px,3vw,55px) !important;padding:105px clamp(20px,4.4vw,78px) !important;background:linear-gradient(150deg,#f3f0e9,#eee7db) !important;}
html body .studio-section > :first-child {align-self:start !important;}
html body .studio-section .studio-mark {font-size:clamp(28px,3.1vw,50px) !important;letter-spacing:.18em !important;color:rgba(154,116,72,.32) !important;}
html body .studio-section .spatial-studio-image {height:clamp(365px,36vw,590px);align-self:stretch;position:relative;border-radius:25px;overflow:hidden;background:#c9c0af;box-shadow:0 25px 54px rgba(55,47,36,.16);}
html body .spatial-studio-image img {display:block;width:100%;height:100%;object-fit:cover;transition:transform 1s var(--sp-curve);}
html body .spatial-studio-image:hover img {transform:scale(1.05);}
html body .spatial-image-signature {position:absolute;bottom:20px;left:20px;right:20px;border:1px solid rgba(255,255,255,.45);border-radius:15px;background:rgba(242,238,230,.72);backdrop-filter:blur(15px);padding:16px;color:#363630;font-size:12px;letter-spacing:.12em;text-align:center;}
html body .studio-section .studio-copy {min-width:0 !important;max-width:680px !important;}
html body .studio-section .studio-copy h2 {font-size:clamp(38px,3.6vw,65px) !important;line-height:1.09 !important;font-weight:400 !important;letter-spacing:-.055em !important;color:#262722 !important;}
html body .studio-section .studio-copy p {color:#686861 !important;font-size:15px !important;line-height:1.78 !important;}
/* Contact section uses a second real image and legible information glass. */
html body .contacts-section {isolation:isolate;overflow:hidden;background:#d0c7b8 !important; min-height:580px !important;padding:105px clamp(20px,6vw,105px) !important;color:white !important;}
html body .contacts-section .spatial-contacts-image {position:absolute;inset:0;z-index:-2;overflow:hidden;}
html body .contacts-section .spatial-contacts-image img {width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.75) brightness(.72);}
html body .contacts-section::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,rgba(32,33,31,.67),rgba(32,33,31,.31) 65%,rgba(32,33,31,.13));}
html body .contacts-section .section-index {color:#ddbf99 !important;}
html body .contacts-section h2 {font-size:clamp(42px,5.3vw,84px) !important;max-width:800px !important;line-height:1.07 !important;letter-spacing:-.062em !important;font-weight:400 !important;color:white !important;}
html body .contacts-section .contact-grid {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:12px !important;max-width:990px !important;margin-top:42px !important;}
html body .contacts-section .contact-grid > div {min-width:0 !important;padding:25px !important;border-radius:18px !important;border:1px solid rgba(255,255,255,.43) !important;background:rgba(245,242,233,.75) !important;backdrop-filter:blur(22px) saturate(126%);box-shadow:0 12px 26px rgba(17,17,15,.11),inset 0 1px rgba(255,255,255,.65);}
html body .contacts-section .contact-grid > div > span {display:block !important;color:#8e7256 !important;text-transform:uppercase !important;letter-spacing:.17em !important;font-size:12px !important;margin-bottom:13px !important;}
html body .contacts-section .contact-grid a,html body .contacts-section .contact-grid p {color:#282923 !important;font-size:clamp(14px,1.2vw,18px) !important;line-height:1.55 !important;overflow-wrap:anywhere;}
/* Project pages: glass detail without touching source images or PDF fit/zoom. */
html body .subpage-main {padding-top:105px !important;}
html body .project-rich-hero,html body .subpage-hero {border-radius:0 0 26px 26px;}
html body .project-structure-nav {border:1px solid rgba(255,255,255,.70) !important;border-radius:19px !important;background:rgba(243,240,233,.82) !important;box-shadow:0 12px 30px rgba(38,33,26,.07) !important;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);}
html body .project-presentation-stage,html body .project-presentation-thumb,html body .pdf-slider {border-radius:20px !important;overflow:hidden !important;}
html body .project-presentation-controls,html body .pdf-slider .pdf-slider-toolbar {border-radius:16px !important;background:rgba(243,240,233,.83) !important;backdrop-filter:blur(15px);}
html body .project-modal .modal-inner {border:1px solid rgba(255,255,255,.72) !important;border-radius:23px !important;box-shadow:0 35px 90px rgba(22,22,20,.20) !important;}
/* Existing privacy and brief dialogs remain operational. */
html body .brief-modal .brief-dialog,html body .brief-modal .modal-dialog {border:1px solid rgba(255,255,255,.69) !important;border-radius:24px !important;box-shadow:0 35px 90px rgba(22,22,20,.20) !important;}
/* Lightweight opt-in motion; no hidden content if JS fails. */
html body .spatial-reveal {opacity:0;translate:0 19px;transition:opacity .78s var(--sp-curve),translate .78s var(--sp-curve);}
html body .spatial-reveal.spatial-visible {opacity:1;translate:0 0;}
/* Tablet: full nav converts to accessible glass menu. */
@media(max-width:1180px) {
 html body .topbar {height:72px !important;}
 html body .topbar .nav {display:none !important;}
 html body .topbar .top-cta {margin-left:auto !important;}
 html body .topbar .menu-btn {display:inline-flex !important;align-items:center !important;justify-content:center !important;margin:0 !important;min-width:64px !important;min-height:44px !important;border:1px solid rgba(255,255,255,.70) !important;border-radius:999px !important;background:rgba(255,255,255,.55) !important;color:#292a25 !important;}
 html body .topbar:has(.menu-btn[aria-expanded="true"]) .nav,
 html body .topbar .nav.is-open,html body .topbar .nav.open,html body .topbar .nav.active {display:flex !important;position:absolute !important;left:0 !important;right:0 !important;top:calc(100% + 10px) !important;width:100% !important;height:auto !important;max-height:min(70vh,550px);overflow-y:auto !important;margin:0 !important;padding:16px !important;flex-direction:column !important;align-items:stretch !important;gap:2px !important;border:1px solid rgba(255,255,255,.84) !important;border-radius:23px !important;background:rgba(245,241,234,.94) !important;box-shadow:0 20px 50px rgba(34,30,24,.16) !important;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);z-index:10 !important;}
 html body .topbar .nav > a {font-size:13px !important;padding:14px 16px !important;border-radius:12px !important;}
 html body .topbar .nav > a:hover {background:rgba(255,255,255,.5) !important;}
 html body .topbar .spatial-mobile-cta {display:block !important;min-height:46px;margin-top:6px;border:1px solid rgba(154,116,72,.20);border-radius:15px;background:#9a7448;color:white;}
 html body .studio-section {grid-template-columns:1fr 1.1fr !important;}
 html body .studio-section > :first-child {grid-column:1/-1;}
 html body .services-section .services-list {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:760px) {
 html body .topbar {inset:8px 10px auto !important;width:calc(100% - 20px) !important;height:66px !important;border-radius:20px !important;padding:8px 13px !important;gap:8px !important;}
 html body .topbar .top-cta {display:none !important;}
 html body .topbar .menu-btn {margin-left:auto !important;min-width:54px !important;min-height:40px !important;font-size:13px !important;}
 html body .hero {min-height:96svh !important;padding:110px 14px 75px !important;align-items:center !important;}
 html body .hero .hero-body {padding:30px 22px !important;border-radius:22px !important;}
 html body .hero h1,html body .hero #hero-title {font-size:clamp(39px,8vw,59px) !important;line-height:1.08 !important;letter-spacing:-.058em !important;}
 html body .hero h1 br {display:none;}
 html body .hero .hero-kicker {font-size:12px !important;letter-spacing:.10em !important;margin-bottom:19px !important;}
 html body .hero .hero-bottom {gap:23px !important;}
 html body .hero .hero-bottom p {font-size:14px !important;}
 html body .hero .hero-number {bottom:23px !important;left:20px !important;}
 html body .projects-section,html body .services-section {padding:75px 16px 80px !important;}
 html body .section-head {align-items:flex-start !important;flex-direction:column !important;gap:12px !important;}
 html body .section-head h2 {font-size:clamp(36px,8.6vw,52px) !important;}
 html body .projects-section .filters {flex-wrap:nowrap !important;width:100% !important;overflow-x:auto !important;scrollbar-width:none;padding:5px !important;border-radius:16px !important;}
 html body .projects-section .filters::-webkit-scrollbar {display:none;}
 html body .projects-section .filter {white-space:nowrap !important;flex:0 0 auto !important;padding:10px 13px !important;}
 html body .masonry {column-count:1 !important;columns:1 !important;}
 html body .project-card {margin-bottom:14px !important;}
 html body .project-card .card-overlay {bottom:12px !important;left:12px !important;right:12px !important;padding:15px !important;}
 html body .project-card .card-overlay h3 {font-size:20px !important;}
 html body .services-section .services-list {grid-template-columns:1fr 1fr !important;gap:10px !important;}
 html body .services-section .service-row {min-height:215px !important;padding:19px 15px !important;}
 html body .services-section .service-row h3 {font-size:19px !important;}
 html body .services-section .service-row strong {font-size:14px !important;}
 html body .studio-section {display:flex !important;flex-direction:column !important;align-items:stretch !important;padding:75px 16px !important;gap:25px !important;}
 html body .studio-section .spatial-studio-image {height:365px;min-height:0;}
 html body .studio-section .studio-copy h2 {font-size:clamp(38px,8.7vw,59px) !important;}
 html body .contacts-section {padding:75px 16px !important;min-height:0 !important;}
 html body .contacts-section h2 {font-size:clamp(41px,8.5vw,63px) !important;}
 html body .contacts-section .contact-grid {grid-template-columns:1fr !important;gap:10px !important;margin-top:29px !important;}
 html body .contacts-section .contact-grid > div {padding:20px !important;}
 html body .subpage-main {padding-top:84px !important;}
}
@media(max-width:380px) {
 html body .topbar {padding-inline:9px !important;}
 html body .topbar .menu-btn {min-width:51px !important;}
 html body .hero .hero-body {padding:26px 18px !important;}
 html body .hero h1,html body .hero #hero-title {font-size:37px !important;}
 html body .services-section .services-list {grid-template-columns:1fr !important;}
 html body .services-section .service-row {min-height:174px !important;}
}
@media(prefers-reduced-motion:reduce) {
 html {scroll-behavior:auto !important;}
 html body .spatial-reveal {opacity:1 !important;translate:none !important;transition:none !important;}
 html body .hero .hero-slideshow {transform:none !important;will-change:auto !important;}
 html body .project-card,html body .project-card img,html body .project-card video,html body .service-row,html body .top-cta {transition:none !important;}
 html body .project-card:hover,html body .service-row:hover,html body .top-cta:hover {transform:none !important;}
}
@supports not (backdrop-filter:blur(2px)) {
 html body .topbar {background:#f3f0e9 !important;}
 html body .hero .hero-body {background:rgba(249,246,239,.96) !important;}
 html body .projects-section .filters {background:#ece6db !important;}
}

/* Responsive edge cases and pointer-positioned, subtle glass reflections. */
html body .hero .hero-body::before {
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(ellipse at var(--spatial-x,28%) var(--spatial-y,3%),rgba(255,255,255,.35),transparent 52%);
  opacity:.65;
}
html body .hero .hero-body > * {position:relative;}
html body .services-section .service-row {position:relative !important;isolation:isolate;}
html body .services-section .service-row::before {
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;
  background:radial-gradient(circle at var(--spatial-x,20%) var(--spatial-y,10%),rgba(255,255,255,.13),transparent 48%);
}
html body .studio-section:not(:has(.spatial-studio-image)) {grid-template-columns:minmax(190px,.65fr) minmax(0,1.4fr) !important;}
@media(max-width:1180px){html body .studio-section:not(:has(.spatial-studio-image)) {grid-template-columns:1fr 1.2fr !important;}}
@media(max-width:760px){html body .studio-section:not(:has(.spatial-studio-image)) {display:flex !important;}}
@media(prefers-reduced-motion:reduce){html body .hero .hero-body::before,html body .services-section .service-row::before {opacity:0 !important;}}


/* FORTUNA — project card captions: reveal on hover (desktop),
   keyboard focus accessible, always visible on touch screens. */
@media (hover: hover) and (pointer: fine) {
  html body :is(.projects-section, .related-projects) .project-card .card-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate3d(0, 14px, 0) !important;
    transition:
      opacity .36s cubic-bezier(.22, 1, .36, 1),
      transform .42s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear .42s !important;
  }
  html body :is(.projects-section, .related-projects) .project-card:is(:hover, :focus-visible, :focus-within) .card-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    transition:
      opacity .36s cubic-bezier(.22, 1, .36, 1),
      transform .42s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear 0s !important;
  }
}
/* Taps do not have hover: keep project names available immediately. */
@media (hover: none), (pointer: coarse) {
  html body :is(.projects-section, .related-projects) .project-card .card-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(.projects-section, .related-projects) .project-card .card-overlay {
    transition: none !important;
  }
}

/* FORTUNA — lightened hero glass: reveal more of the architectural slides.
   Real slideshow imagery stays fully opaque; only the translucent glass
   foreground and its decorative scrims become clearer. */
html body .hero.hero--with-slides .hero-slideshow {
  opacity: 1 !important;
}
html body .hero.hero--with-slides .hero-body {
  background: linear-gradient(130deg,
    rgba(250, 248, 243, .56), rgba(245, 241, 233, .30) 75%) !important;
  -webkit-backdrop-filter: blur(15px) saturate(120%) !important;
  backdrop-filter: blur(15px) saturate(120%) !important;
}
html body .hero.hero--with-slides .hero-body::before {
  opacity: .45 !important;
}
html body .hero.hero--with-slides::before {
  background: linear-gradient(90deg, rgba(32,33,31,.08), transparent 76%) !important;
}
html body .hero.hero--with-slides::after {
  background: linear-gradient(180deg, transparent 50%, rgba(30,29,24,.17)) !important;
}
@media (max-width: 760px) {
  html body .hero.hero--with-slides .hero-body {
    background: linear-gradient(130deg,
      rgba(250,248,243,.69), rgba(245,241,233,.43) 80%) !important;
    -webkit-backdrop-filter: blur(17px) saturate(120%) !important;
    backdrop-filter: blur(17px) saturate(120%) !important;
  }
}
@supports not (backdrop-filter: blur(2px)) {
  html body .hero.hero--with-slides .hero-body {
    background: rgba(249,246,239,.84) !important;
  }
}

/* FORTUNA · 23.10.2026 — контраст светлой редакционной карточки «Наш подход».
   Только редакционная карточка без модификатора --accent; подписи на фотографиях,
   тёмная карточка «Начать проект» и стеклянные панели остаются прежними. */
html body #portfolioGrid .editorial-card:not(.editorial-card--accent) {
  color: #20211F !important;
  background: linear-gradient(140deg, rgba(250,248,243,.96), rgba(240,235,226,.93)) !important;
  border-color: rgba(255,255,255,.80) !important;
}
html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > span {
  color: #765934 !important;
  -webkit-text-fill-color: #765934 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > p {
  color: #20211F !important;
  -webkit-text-fill-color: #20211F !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > a {
  color: #765934 !important;
  -webkit-text-fill-color: #765934 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > a:hover,
html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > a:focus-visible {
  color: #44351F !important;
  -webkit-text-fill-color: #44351F !important;
}
html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > a:focus-visible {
  outline: 2px solid #9A7448;
  outline-offset: 4px;
}
@media (forced-colors: active) {
  html body #portfolioGrid .editorial-card:not(.editorial-card--accent),
  html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > span,
  html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > p,
  html body #portfolioGrid .editorial-card:not(.editorial-card--accent) > a {
    forced-color-adjust: auto;
  }
}

/* FORTUNA · 23.10.2026 — полупрозрачная светлая подложка под названиями проектов.
   В отличие от старой тёмной подложки, текст графитовый, рубрика бронзовая.
   Состояния появления при наведении/фокусе намеренно не переопределяются. */
html body :is(.projects-section, .related-projects) .project-card .card-overlay {
  background: linear-gradient(140deg, rgba(250, 248, 243, .84), rgba(243, 239, 231, .74)) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px rgba(32, 30, 25, .13), inset 0 1px 0 rgba(255, 255, 255, .58) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
  padding: 17px 19px !important;
}
html body :is(.projects-section, .related-projects) .project-card .card-overlay > span {
  color: #795a36 !important;
  -webkit-text-fill-color: #795a36 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html body :is(.projects-section, .related-projects) .project-card .card-overlay > h3 {
  color: #20211F !important;
  -webkit-text-fill-color: #20211F !important;
  text-shadow: none !important;
}
html body :is(.projects-section, .related-projects) .project-card .card-overlay > p {
  color: #4b4b46 !important;
  -webkit-text-fill-color: #4b4b46 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
@media (max-width: 760px) {
  html body :is(.projects-section, .related-projects) .project-card .card-overlay {
    background: linear-gradient(140deg, rgba(250, 248, 243, .90), rgba(243, 239, 231, .83)) !important;
    padding: 15px !important;
    border-radius: 16px !important;
  }
}
@supports not (backdrop-filter: blur(2px)) {
  html body :is(.projects-section, .related-projects) .project-card .card-overlay {
    background: rgba(249, 246, 239, .96) !important;
  }
}


/* ФОРТУНА: восстановление фильтрации портфолио.
   Правило переопределяет display:block!important из оформления Spatial UI.
   Существующий assets/app.js ставит/убирает класс .hidden при выборе категории. */
html body :is(.projects-section, .related-projects) .masonry .project-card.hidden {
  display: none !important;
}

/* ФОРТУНА · 26.10.2026 · мобильная сетка проектов.
   Десктоп не меняется. Если JS не загрузился, подписи остаются видимыми. */
@media (min-width: 621px) and (max-width: 900px) {
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry).masonry {
    column-count: 3 !important;
    columns: 3 !important;
    column-gap: 12px !important;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card,
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .editorial-card {
    break-inside: avoid !important;
    margin-bottom: 12px !important;
  }
}
@media (max-width: 620px) {
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry).masonry {
    column-count: 2 !important;
    columns: 2 !important;
    column-gap: 9px !important;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card,
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .editorial-card {
    break-inside: avoid !important;
    margin-bottom: 9px !important;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card {
    border-radius: 15px !important;
    touch-action: manipulation;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card .card-overlay {
    left: 7px !important;
    right: 7px !important;
    bottom: 7px !important;
    padding: 9px 8px !important;
    border-radius: 11px !important;
    max-height: calc(100% - 14px) !important;
    overflow: auto !important;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card .card-overlay > span {
    font-size: 10px !important;
    letter-spacing: .04em !important;
    line-height: 1.2 !important;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card .card-overlay > h3 {
    font-size: clamp(12px, 3.4vw, 14px) !important;
    line-height: 1.18 !important;
    margin: 4px 0 0 !important;
    display: block;
    overflow-wrap: anywhere;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card .card-overlay > p {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin: 4px 0 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Текстовые редакционные карточки остаются читаемыми постоянно. */
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .editorial-card {
    min-width: 0 !important;
    padding: 15px 12px !important;
    border-radius: 15px !important;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .editorial-card p {
    font-size: 13px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }
}
/* ========================================================================
   ФОРТУНА · 26.10.2026 — размер и компоновка верхней части по образцу.
   Меняется только плавающая шапка и первый экран. Фото портфолио,
   слайд-шоу, фильтры, галереи и мобильная сетка не затрагиваются.
   ======================================================================== */
@media (min-width: 1181px) {
  /* Шапка: та же вертикаль, что у стеклянной панели в первом экране. */
  html body .topbar {
    inset: 26px auto auto 50% !important;
    left: 50% !important;
    right: auto !important;
    top: 26px !important;
    width: min(1698px, 89.1vw) !important;
    max-width: 1698px !important;
    min-width: 0 !important;
    height: 76px !important;
    padding: 8px 29px !important;
    gap: clamp(22px, 2.2vw, 42px) !important;
    border-radius: 27px !important;
    transform: translateX(-50%) !important;
  }
  html body .topbar a.brand.fortuna-text-logo {
    gap: 12px !important;
    margin-right: auto !important;
  }
  html body .topbar a.brand.fortuna-text-logo > strong.fortuna-text-logo__name {
    font-size: clamp(23px, 1.43vw, 28px) !important;
    letter-spacing: .17em !important;
  }
  html body .topbar a.brand.fortuna-text-logo > span.fortuna-text-logo__descriptor {
    font-size: clamp(10px, .59vw, 11.5px) !important;
    padding-left: 13px !important;
    gap: 3px !important;
  }
  html body .topbar .nav {
    gap: clamp(22px, 2.25vw, 43px) !important;
    margin-left: auto !important;
  }
  html body .topbar .nav > a {
    font-size: 12px !important;
    letter-spacing: .105em !important;
  }
  html body .topbar .top-cta {
    min-height: 44px !important;
    padding: 10px 22px !important;
    font-size: 12px !important;
    margin-left: 3px !important;
  }

  /* Первый экран: тот же край, более крупная и высокая панель. */
  html body .hero {
    align-items: flex-start !important;
    min-height: 100svh !important;
    height: auto !important;
    padding-top: clamp(170px, 10.7vw, 204px) !important;
    padding-bottom: 96px !important;
    padding-left: max(5.45vw, calc((100vw - 1698px) / 2)) !important;
    padding-right: max(5.45vw, calc((100vw - 1698px) / 2)) !important;
  }
  html body .hero .hero-body {
    width: clamp(550px, 34.2vw, 650px) !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: clamp(41px, 3.05vw, 58px) !important;
    border-radius: 31px !important;
    box-shadow: 0 28px 72px rgba(43, 36, 26, .14), inset 0 1px 0 rgba(255,255,255,.86) !important;
  }
  html body .hero.hero--with-slides .hero-body {
    background: linear-gradient(135deg, rgba(252,248,240,.76), rgba(242,236,227,.56)) !important;
    -webkit-backdrop-filter: blur(18px) saturate(122%) !important;
    backdrop-filter: blur(18px) saturate(122%) !important;
  }
  html body .hero .hero-kicker {
    font-size: 12px !important;
    letter-spacing: .16em !important;
    margin-bottom: 27px !important;
    color: #716a60 !important;
  }
  html body .hero h1,
  html body .hero #hero-title {
    font-size: clamp(59px, 4.44vw, 85px) !important;
    line-height: 1.055 !important;
    letter-spacing: -.067em !important;
    font-weight: 350 !important;
    margin-bottom: 28px !important;
  }
  html body .hero .hero-bottom {
    gap: 25px !important;
  }
  html body .hero .hero-bottom p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    max-width: 390px !important;
  }
  html body .hero .hero-bottom .arrow-link {
    min-height: 46px !important;
    padding: 12px 24px !important;
  }
}

/* На ноутбуках сохраняется плавающая капсула и удобное мобильное меню. */
@media (min-width: 761px) and (max-width: 1180px) {
  html body .topbar {
    inset: 16px 4vw auto !important;
    width: 92vw !important;
    height: 72px !important;
    padding: 8px 20px !important;
    transform: none !important;
  }
  html body .hero {
    align-items: flex-start !important;
    padding: 165px 4vw 80px !important;
  }
  html body .hero .hero-body {
    width: min(620px, 88vw) !important;
    padding: clamp(36px, 4.2vw, 48px) !important;
  }
  html body .hero h1,
  html body .hero #hero-title {
    font-size: clamp(56px, 6.1vw, 72px) !important;
  }
}

/* На телефонах сохраняем удобную вертикальную композицию и не скрываем CTA. */
@media (max-width: 760px) {
  html body .hero .hero-body {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Не склеивать «которых» и «хочется» при скрытии HTML-переноса. */
  html body .hero h1 br,
  html body .hero #hero-title br {
    display: inline !important;
  }
  html body .topbar {
    box-sizing: border-box !important;
  }
}

/* ======================================================================
  ФОРТУНА · Единая сетка выравнивания · 26.10.2026
  CSS-слой: без правок HTML/PHP, JS, карт, файлов portfolio или PDF.
  Не удалять прошлые правила карточек (две/три колонки и скрытие фильтром).
   ====================================================================== */

/* Единая внутренняя вертикаль: от стеклянной шапки до футера. */
@media (min-width: 1181px) {
  html body {
    --fortuna-page-edge: max(24px, calc((100vw - min(1698px, 89.1vw)) / 2));
  }

  html body .topbar {
    left: var(--fortuna-page-edge) !important;
    right: var(--fortuna-page-edge) !important;
    top: 26px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  html body .hero {
    padding-left: var(--fortuna-page-edge) !important;
    padding-right: var(--fortuna-page-edge) !important;
    padding-top: clamp(170px, 10.7vw, 204px) !important;
  }

  html body .hero .hero-number {
    left: var(--fortuna-page-edge) !important;
  }

  html body .projects-section,
  html body .services-section,
  html body .studio-section,
  html body .contacts-section,
  html body > footer {
    padding-left: var(--fortuna-page-edge) !important;
    padding-right: var(--fortuna-page-edge) !important;
  }

  /* Заголовок слева, пояснение строго в правой колонке. */
  html body .projects-section > .section-head,
  html body .services-section > .section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 390px) !important;
    align-items: end !important;
    column-gap: clamp(28px, 5vw, 90px) !important;
  }

  html body .projects-section {
    padding-top: 86px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  html body { --fortuna-page-edge: 4vw; }

  html body .topbar {
    left: var(--fortuna-page-edge) !important;
    right: var(--fortuna-page-edge) !important;
    width: auto !important;
    transform: none !important;
  }
  html body .hero {
    padding-left: var(--fortuna-page-edge) !important;
    padding-right: var(--fortuna-page-edge) !important;
  }
  html body .hero .hero-number { left: var(--fortuna-page-edge) !important; }

  html body .projects-section,
  html body .services-section,
  html body .studio-section,
  html body .contacts-section,
  html body > footer {
    padding-left: var(--fortuna-page-edge) !important;
    padding-right: var(--fortuna-page-edge) !important;
  }

  html body .projects-section { padding-top: 78px !important; }
  html body .projects-section > .section-head,
  html body .services-section > .section-head {
    gap: 22px !important;
  }
}

/* Выравнивание содержания секций и равномерные промежутки. */
html body .projects-section .section-head,
html body .services-section .section-head {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html body .projects-section .section-head > p,
html body .services-section .section-head > p {
  margin: 0 !important;
}
html body .projects-section .filters,
html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry),
html body .services-section .services-list {
  box-sizing: border-box !important;
  max-width: 100% !important;
}
html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) { width: 100% !important; }
html body .studio-section > *,
html body .projects-section > *,
html body .services-section > * {
  min-width: 0;
}
html body .projects-section,
html body .services-section,
html body .studio-section,
html body .contacts-section {
  scroll-margin-top: 118px !important;
}
html { scroll-padding-top: 118px !important; }

@media (max-width: 760px) {
  html body { --fortuna-page-edge: clamp(12px, 4vw, 16px); }

  html body .topbar {
    left: var(--fortuna-page-edge) !important;
    right: var(--fortuna-page-edge) !important;
    width: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  html body .hero {
    padding-left: var(--fortuna-page-edge) !important;
    padding-right: var(--fortuna-page-edge) !important;
    padding-top: 112px !important;
  }
  html body .hero .hero-body {
    width: 100% !important;
    min-width: 0 !important;
  }
  html body .hero .hero-number { left: var(--fortuna-page-edge) !important; }

  html body .projects-section,
  html body .services-section,
  html body .studio-section,
  html body .contacts-section,
  html body > footer {
    padding-left: var(--fortuna-page-edge) !important;
    padding-right: var(--fortuna-page-edge) !important;
  }
  html body .projects-section { padding-top: 62px !important; }
  html body .projects-section .section-head,
  html body .services-section .section-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  html body .projects-section .filters {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  html body .projects-section,
  html body .services-section,
  html body .studio-section,
  html body .contacts-section {
    scroll-margin-top: 90px !important;
  }
  html { scroll-padding-top: 90px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* ФОРТУНА — адаптивные фильтры: все категории помещаются на мобильном экране.
   Добавить в КОНЕЦ assets/fortuna-spatial-live.css после предыдущих правил. */
@media (max-width: 760px) {
  html body .projects-section .filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    gap: 7px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 7px !important;
    overflow: visible !important;
    border-radius: 18px !important;
  }

  html body .projects-section .filters .filter {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 9px 8px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
    font-size: clamp(13px, 3.422vw, 14px) !important;
    flex: 0 1 auto !important;
  }

  /* Длинная категория занимает всю строку; другие кнопки стоят по две. */
  html body .projects-section .filters .filter[data-filter="concepts"] {
    grid-column: 1 / -1 !important;
  }
}

/* FORTUNA 26.10.2026: click-through direction cards.
   Visual styling stays Spatial UI; no changes to project portfolio filters. */
html body .services-section .services-list {
  position: relative !important;
  z-index: 4 !important;
}
html body .services-section .services-list > a.service-row {
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
html body .services-section::before,
html body .services-section::after,
html body .services-section .service-row::before,
html body .services-section .service-row::after {
  pointer-events: none !important;
}
html body .services-section .services-list > a.service-row:focus-visible {
  outline: 2px solid #E6C79C !important;
  outline-offset: 4px !important;
}

/* Mobile project captions leave the image visible on every listing. */
@media (max-width: 900px) {
  html body :is(.projects-section, .related-projects) .project-card {
    touch-action: manipulation;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card .card-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: none;
    left: 5px !important;
    right: 5px !important;
    bottom: 5px !important;
    padding: 4px 6px !important;
    border-radius: 7px !important;
    background: rgba(250, 248, 243, .60) !important;
    border-color: rgba(255, 255, 255, .36) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(2px) !important;
    backdrop-filter: blur(2px) !important;
    overflow: hidden !important;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card .card-overlay > h3 {
    font-size: clamp(14px, 3.3vw, 15px) !important;
    opacity: .95 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  html body :is(.projects-section, .related-projects) :is(#portfolioGrid, .masonry) .project-card .card-overlay > :is(span, p) {
    display: none !important;
  }
}

/* Equal bottom edge without changing the source order or upper masonry layout. */
html body :is(.projects-section, .related-projects) .masonry.is-bottom-aligned {
  display: grid !important;
  grid-template-columns: repeat(var(--portfolio-columns), minmax(0, 1fr));
  grid-auto-rows: 1px;
  /* Override compact-spacing.css: a gap per pixel row stretches every card. */
  row-gap: 0 !important;
  align-items: stretch;
}
html body :is(.projects-section, .related-projects) .masonry.is-bottom-aligned > :is(.project-card, .editorial-card) {
  margin-bottom: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box;
}
html body :is(.projects-section, .related-projects) .masonry.is-bottom-aligned > .project-card > .media-wrap {
  height: 100% !important;
  aspect-ratio: auto !important;
}
html body .masonry.is-measuring-bottom > :is(.project-card, .editorial-card) {
  transform: none !important;
  transition: none !important;
}

/* Compact project page headings across all portfolio categories. */
html body .project-rich-page .project-rich-hero h1 {
  font-size:clamp(30px,4.4vw,68px);
  line-height:1.08;
  letter-spacing:-.04em;
}

/* Smaller section headings within project pages. */
html body .project-rich-page h2 {
  font-size:clamp(24px,3vw,44px);
  line-height:1.12;
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
}

/* Keep the mobile slideshow visible above a compact bottom text panel. */
@media (max-width: 760px) {
  html body .hero.hero--with-slides {
    align-items: flex-end !important;
    padding: 110px 14px max(24px, env(safe-area-inset-bottom)) !important;
  }
  html body .hero.hero--with-slides .hero-body {
    min-height: 0 !important;
    padding: 18px 20px !important;
  }
  html body .hero.hero--with-slides .hero-kicker {
    margin-bottom: 10px !important;
  }
  html body .hero.hero--with-slides #hero-title {
    font-size: clamp(30px, 7.8vw, 36px) !important;
    line-height: 1.06 !important;
    margin-bottom: 12px !important;
  }
  html body .hero.hero--with-slides .hero-bottom {
    gap: 12px !important;
  }
  html body .hero.hero--with-slides .hero-bottom p {
    line-height: 1.45 !important;
  }
  html body .hero.hero--with-slides .hero-bottom .arrow-link {
    min-height: 44px !important;
    padding: 10px 18px !important;
    margin: 0 !important;
  }
}
