:root{--ink:#24241f;--paper:#f3eee4;--red:#6b2f26;--line:#cec7bb}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}header{min-height:100px;padding:22px 5%;display:flex;align-items:center;justify-content:space-between;background:var(--paper);gap:24px}.brand{display:flex;gap:14px;align-items:center;font-size:13px;letter-spacing:2px;line-height:1.4}.brand-mark{font-family:Georgia,serif;font-size:48px;line-height:1;letter-spacing:-10px;color:var(--red);padding-right:10px}.brand-mark span{font-size:30px}nav{display:flex;gap:34px;font-size:14px}nav a:hover{color:var(--red)}.hero{display:grid;grid-template-columns:1fr 1fr;background:#58271f;color:var(--paper);min-height:690px}.hero-copy{padding:60px 10% 24px;background:linear-gradient(90deg,#361810dd,#361810bb),url('img/brick-texture.png') center/cover}.eyebrow,.section-kicker{font-size:12px;letter-spacing:2px}.hero h1{font-size:clamp(42px,4.6vw,76px);line-height:1.06;font-weight:400;margin:32px 0;font-family:Georgia,serif;letter-spacing:-2px}em{font-weight:400;color:inherit}.intro{max-width:420px;color:#e0d4c5;font-size:17px}.button{display:inline-flex;gap:60px;align-items:center;padding:12px 19px;background:var(--paper);color:var(--ink);margin:23px 0 55px;font-size:14px}.button:hover{background:#fff}.hero-foot{display:flex;justify-content:space-between;border-top:1px solid #ffffff45;padding-top:15px;font-size:12px;color:#dacbb9}.hero-image{margin:0;position:relative;min-height:100%;overflow:hidden}.hero-image>img{width:100%;height:100%;position:absolute;object-fit:cover;filter:sepia(.22);object-position:48% center}.hero-image figcaption{position:absolute;bottom:0;left:0;right:0;padding:32px;display:flex;justify-content:space-between;color:white;background:linear-gradient(transparent,#0009);font-size:13px}.section{padding:70px 7% 85px;scroll-margin-top:20px}.section-kicker{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:48px}.section-kicker span:last-child{letter-spacing:0;font-size:14px}.heritage-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}h2{font-family:Georgia,serif;font-size:clamp(44px,5vw,70px);font-weight:400;line-height:1.05;margin:0 0 30px;letter-spacing:-2px}h2 em{color:var(--red)}.lead{font-family:Georgia,serif;font-size:27px;line-height:1.4;margin-top:0}.heritage-grid p:not(.lead){color:#615e56}.values{display:grid;grid-template-columns:repeat(3,1fr);gap:42px;margin-top:60px}.values>div{border-top:1px solid var(--line);padding-top:20px}.values span{color:var(--red);font-size:13px}.values h3{font-size:19px;font-weight:400;margin:15px 0 8px}.values p{font-size:15px;color:#615e56;max-width:290px}.gallery{background:#242822;color:var(--paper)}.gallery .section-kicker{border-color:#ffffff30}.gallery h2 em{color:#cba789}.gallery-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:30px}.gallery-heading>p{color:#bbbdb3;font-size:15px;margin-bottom:34px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px}.photo{border:0;padding:0;background:none;color:inherit;text-align:left;display:block;width:100%}.photo img{width:100%;height:260px;object-fit:cover;display:block;filter:sepia(.16);transition:filter .25s,transform .25s}.photo:hover img{filter:sepia(0);transform:translateY(-3px)}.photo:first-child{grid-column:span 2}.photo:first-child img{height:360px}.photo:nth-child(2) img{height:360px}.photo-label{display:flex;justify-content:space-between;padding-top:12px;font-size:14px;color:#c7c9be}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}.contact-grid>div>p{max-width:410px;color:#615e56}.contact-card{padding:35px;border:1px solid var(--line);align-self:center}.contact-card h3{font-family:Georgia,serif;font-size:26px;font-weight:400;line-height:1.35}.pending{font-size:15px;color:#736a60;border-top:1px solid var(--line);padding-top:20px}.contact-card a{display:block;text-decoration:underline;overflow-wrap:anywhere}footer{padding:26px 5%;display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);font-size:13px}footer span{color:#736a60}dialog{width:100vw;max-width:none;height:100dvh;max-height:none;border:0;margin:0;padding:60px 70px;background:#111e;color:#fff}dialog::backdrop{background:#111}dialog[open]{display:flex;align-items:center;justify-content:center}dialog figure{margin:0;text-align:center;max-width:100%}dialog img{display:block;max-height:77dvh;max-width:100%;object-fit:contain;margin:auto}dialog figcaption{padding-top:16px;font-size:15px}dialog button{position:absolute;color:#fff;background:#262626;border:1px solid #777;border-radius:50%;width:44px;height:44px;font-size:28px;line-height:1}.close{right:20px;top:18px}.prev{left:12px;top:50%}.next{right:12px;top:50%}.skip{position:absolute;left:10px;top:-90px;z-index:5;background:white;padding:12px}.skip:focus{top:10px}:focus-visible{outline:3px solid #b17c47;outline-offset:5px}@media(min-width:1550px){main,header,footer{max-width:1600px;margin:auto}}@media(max-width:800px){header{flex-wrap:wrap;padding:18px 6%}nav{gap:23px}.hero{grid-template-columns:1fr}.hero-copy{padding:45px 7% 25px}.hero h1{font-size:58px}.hero-image{min-height:450px}.hero-image>img{object-position:center 50%}.hero-foot{margin-top:0}.button{margin-bottom:35px}.section{padding:48px 7%}.heritage-grid,.contact-grid{grid-template-columns:1fr;gap:20px}.values{gap:22px;margin-top:32px}.gallery-heading{display:block}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo:first-child{grid-column:span 2}.photo:nth-child(2) img,.photo img{height:220px}.gallery-heading>p{margin-bottom:24px}footer{flex-wrap:wrap}.section-kicker{margin-bottom:35px}}@media(max-width:480px){.hero h1{font-size:47px;letter-spacing:-1.5px}.brand{font-size:12px}nav{width:100%;justify-content:space-between;font-size:14px}.hero-image{min-height:350px}.values{grid-template-columns:1fr;gap:12px}.values p{max-width:none}.section-kicker span:last-child{display:none}.gallery-grid{gap:22px 12px}.photo img,.photo:nth-child(2) img{height:165px}.photo:first-child img{height:270px}.photo-label{font-size:12px}.contact-card{padding:24px}dialog{padding:65px 50px}footer{font-size:12px}h2{font-size:48px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

header{flex-wrap:wrap}header nav{margin-left:auto}.languages{display:flex;gap:6px;margin-left:24px}.languages a{font-size:14px;padding:7px 9px;border:1px solid transparent}.languages a[aria-current]{border-color:var(--red);color:var(--red)}.languages a:hover{background:#e4dccf}.hero h1{overflow-wrap:normal;font-size:clamp(38px,4.3vw,70px)}@media(max-width:800px){.languages{margin-left:0}header nav{margin-left:0}.hero h1{font-size:clamp(34px,8.2vw,58px)}}@media(max-width:480px){header nav{order:3}.languages{margin-left:auto;gap:0}.languages a{padding:6px}.brand{font-size:11px;letter-spacing:1px;gap:8px}.hero h1{letter-spacing:-1px}}

/* Full building name replaces the KM monogram. */
.brand-mark{font-family:Georgia,serif;font-size:clamp(24px,2.7vw,38px);font-weight:400;line-height:1.12;letter-spacing:0;color:var(--red);padding-right:0;white-space:nowrap}.hero-image>img{filter:none}
@media(max-width:480px){.brand-mark{font-size:24px}.brand{width:100%}.languages{margin-left:0}}


/* KIME two-line signature and full building name. */
.brand{gap:16px;letter-spacing:0}.kime-logo{display:block;width:64px;height:68px;flex:none}.brand-name{font-family:Georgia,serif;font-size:clamp(20px,2vw,28px);line-height:1.18;color:var(--red);white-space:nowrap}@media(max-width:480px){.brand{gap:12px}.kime-logo{width:52px;height:55px}.brand-name{font-size:21px}}@media(max-width:350px){.brand-name{font-size:18px}}


/* Archive / present-day photograph flip. */
.hero-flip{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;perspective:1400px;color:inherit}.hero-flip-inner{display:block;position:absolute;inset:0;transform-style:preserve-3d;transition:transform .7s ease}.hero-flip img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;filter:none}.hero-flip .hero-back{transform:rotateY(180deg);object-position:center 40%}.hero-flip.is-flipped .hero-flip-inner{transform:rotateY(180deg)}.hero-image figcaption{pointer-events:none}.hero-flip:focus-visible{outline:3px solid var(--paper);outline-offset:-6px}@media(prefers-reduced-motion:reduce){.hero-flip-inner{transition:none}}


/* Staggered brickwork reveal from archive to today. */
.hero-flip-inner,.hero-flip.is-flipped .hero-flip-inner{transform:none;transform-style:flat;transition:none}.hero-flip .hero-back{transform:none;opacity:0;transition:opacity .35s}.hero-flip.is-flipped .hero-back{opacity:1}.hero-flip.has-bricks .hero-back{opacity:0}.hero-masonry{position:absolute;inset:0;overflow:hidden;pointer-events:none}.hero-brick{position:absolute;display:block;background-repeat:no-repeat;opacity:0;transform:scale(.94);filter:sepia(.6);transition:opacity .42s ease,transform .55s cubic-bezier(.2,.65,.3,1),filter .55s ease;transition-delay:var(--return-delay)}.is-flipped .hero-brick{opacity:1;transform:scale(1);filter:sepia(0);transition-delay:var(--reveal-delay)}@media(prefers-reduced-motion:reduce){.hero-brick,.hero-flip .hero-back{transition:none;transition-delay:0s;transform:none;filter:none}}


/* Slower brick reveal; gallery images without visible captions. */
.hero-brick{transition-duration:.85s,1.1s,1.1s}.photo-label,#photo-caption{display:none}@media(prefers-reduced-motion:reduce){.hero-brick{transition:none}}


/* Historical note unfolds beneath its trigger. */
.history-disclosure{margin:23px 0 38px}.history-toggle{margin:0;border:0;text-align:left;gap:32px}.history-toggle>span{font-size:23px;line-height:1;transition:transform .4s}.history-disclosure.is-open .history-toggle>span{transform:rotate(45deg)}.history-reveal{display:grid;grid-template-rows:0fr;visibility:hidden;opacity:0;transition:grid-template-rows .6s ease,opacity .4s ease,visibility .6s}.history-disclosure.is-open .history-reveal{grid-template-rows:1fr;visibility:visible;opacity:1}.history-clip{overflow:hidden;min-height:0}.history-card{margin-top:18px;padding:24px 26px;background:var(--paper);color:var(--ink);border-top:3px solid #a56b50;box-shadow:0 12px 30px #160a0926;font-size:16px;line-height:1.7;transform:translateY(-8px);transition:transform .6s ease}.history-disclosure.is-open .history-card{transform:translateY(0)}.history-card p{margin:0 0 18px}.history-card p:first-child{font-family:Georgia,serif;font-size:21px;line-height:1.45;color:var(--red)}.history-card p:last-child{margin-bottom:0}@media(max-width:480px){.history-card{padding:20px}.history-toggle{gap:24px}}@media(prefers-reduced-motion:reduce){.history-reveal,.history-card,.history-toggle>span{transition:none}}


/* Floating note does not participate in the hero layout. */
.history-disclosure{position:relative;z-index:5}.history-reveal{position:absolute;top:100%;left:0;width:min(620px,82vw);display:block;grid-template-rows:none;z-index:10;padding-top:12px;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease,visibility .25s;pointer-events:none}.history-disclosure.is-open .history-reveal{display:block;transform:translateY(0);pointer-events:auto}.history-clip{overflow:visible}.history-card{position:relative;margin-top:0;padding:30px 32px;max-height:min(65vh,650px);overflow-y:auto;overscroll-behavior:contain;transform:none;box-shadow:0 18px 55px #0005}.history-card p:first-of-type{font-family:Georgia,serif;font-size:21px;line-height:1.45;color:var(--red)}.history-close{position:sticky;top:0;float:right;margin:-20px -20px 4px 10px;border:0;background:var(--paper);color:var(--red);width:36px;height:36px;font-size:28px;line-height:1}.history-toggle{scroll-margin-top:25vh}@media(max-width:800px){.history-reveal{position:fixed;inset:50% auto auto 50%;width:calc(100vw - 32px);padding:0;transform:translate(-50%,-48%)}.history-disclosure.is-open .history-reveal{transform:translate(-50%,-50%)}.history-card{max-height:80dvh;padding:28px}}@media(prefers-reduced-motion:reduce){.history-reveal{transition:none}}


/* Compact historical note. */
.history-reveal{width:min(720px,88vw)}.history-card{padding:24px 28px;font-size:14px;line-height:1.5}.history-card p{margin-bottom:12px}.history-card p:first-of-type{font-family:Georgia,serif;font-size:17px;line-height:1.4;padding-right:16px}.history-close{margin:-14px -18px 2px 8px}@media(max-width:800px){.history-reveal{width:calc(100vw - 32px)}.history-card{padding:24px;max-height:85dvh}}

/* The renovation photographs form a compact visual record. */
.renovation{background:#e9e1d5}.renovation-heading{display:flex;align-items:end;justify-content:space-between;gap:38px;margin-bottom:30px}.renovation-heading h2{margin-bottom:0}.renovation-heading p{max-width:390px;margin:0 0 7px;color:#615e56;font-size:15px}.renovation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.renovation-photo{display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;overflow:hidden;background:#d8cec0}.renovation-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease,filter .3s ease}.renovation-photo:hover img{transform:scale(1.04);filter:brightness(1.06)}.renovation-photo:focus-visible{outline:3px solid var(--red);outline-offset:3px}@media(max-width:900px){.renovation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.renovation-heading{display:block}.renovation-heading p{margin-top:18px}.renovation-grid{gap:12px}}@media(max-width:540px){header nav{justify-content:flex-start;flex-wrap:wrap;gap:5px 18px}.renovation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.renovation-heading p{font-size:14px}}@media(prefers-reduced-motion:reduce){.renovation-photo img{transition:none}}
@media(max-width:540px){.renovation-photo:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 10px)/2);justify-self:center}html[lang="et"] .hero h1{font-size:clamp(34px,10.8vw,43px)}}
@media(max-width:540px){html[lang="ru"] .renovation-heading h2{font-size:clamp(37px,11vw,48px)}}

/* Restoration story sits between the section title and photographic record. */
.renovation-heading{margin-bottom:34px}.renovation-story{border-top:1px solid var(--line);padding-top:30px;margin-bottom:40px}.renovation-lead{max-width:1050px;margin:0 0 34px;font-family:Georgia,serif;font-size:clamp(21px,2.2vw,29px);line-height:1.42}.renovation-copy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;max-width:1100px}.renovation-copy p{margin:0 0 20px;color:#4f4c46;font-size:16px;line-height:1.7}.renovation-copy p:last-child{margin-bottom:0}.renovation-photo-intro{border-top:1px solid var(--line);padding-top:18px;margin:0 0 22px;color:#615e56;font-size:14px}@media(max-width:800px){.renovation-story{padding-top:24px}.renovation-copy{gap:26px}}@media(max-width:650px){.renovation-heading{margin-bottom:24px}.renovation-story{margin-bottom:32px}.renovation-lead{font-size:22px;margin-bottom:24px}.renovation-copy{grid-template-columns:1fr;gap:20px}.renovation-copy p{font-size:15px;line-height:1.65;margin-bottom:18px}}

/* Contact details remain readable as one compact card. */
#contact-details a{margin-bottom:5px}#contact-details .contact-person{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line);font-family:Georgia,serif;font-size:22px;line-height:1.3;color:var(--ink)}#contact-details .contact-role{margin:4px 0 0;color:var(--red);font-size:14px}#contact-details .contact-address{margin:18px 0 0;color:#615e56;font-size:14px}


/* Numbered historical panorama with hover, focus and touch photo previews. */
.panorama-section{background:#e9e1d5;padding-left:5%;padding-right:5%}.panorama-section h2{font-size:clamp(34px,4vw,56px);margin-bottom:18px}.panorama-hint{font-size:14px;color:#615e56;max-width:730px;margin:0 0 24px}.panorama-scroll{overflow-x:auto;overscroll-behavior-x:contain;border:1px solid #c5b69f}.panorama-canvas{position:relative;min-width:760px}.panorama-image{display:block;width:100%;height:auto}.map-marker{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:28px;height:28px;padding:0;border:2px solid #fff6e6;border-radius:50%;background:#6b2f26;color:#fff;font:bold 12px/1 Arial,sans-serif;box-shadow:0 1px 6px #0008;z-index:1;touch-action:manipulation}.map-marker:hover,.map-marker[aria-expanded=true]{background:#fff6e6;color:#6b2f26;border-color:#6b2f26;z-index:2}.map-marker:focus-visible{outline:3px solid white;outline-offset:3px}.map-popup{position:fixed;z-index:30;width:min(340px,calc(100vw - 16px));padding:10px;background:#f3eee4;color:#24241f;border:1px solid #c5b69f;box-shadow:0 12px 40px #0006;border-radius:4px}.map-popup[hidden]{display:none}.map-popup-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:32px;margin-bottom:7px}.map-popup-top strong{font-size:14px;font-weight:400}.map-popup-close{display:grid;place-items:center;border:0;background:transparent;color:#6b2f26;width:32px;height:32px;padding:0;font-size:26px;line-height:1}.map-popup-photo{display:block;width:100%;border:0;background:#242822;padding:0}.map-popup-photo img{display:block;width:100%;height:230px;max-height:calc(100dvh - 100px);object-fit:contain}@media(max-width:600px){.map-marker{width:32px;height:32px}.panorama-section{padding-left:4%;padding-right:4%}.panorama-hint{font-size:13px}}

/* Clean map edges instead of the scanned photograph frame. */
.panorama-scroll{border:0}.panorama-canvas{overflow:hidden}
.panorama-canvas{overflow:clip}

/* Compact destinations within the original three heritage columns. */
.heritage-place-link{display:block}.heritage-places h3{margin:10px 0 14px}.heritage-places h3 span{font-size:16px}.heritage-place-link img{display:block;width:100%;height:150px;object-fit:cover;object-position:center}.heritage-place-link:hover h3{text-decoration:underline}.renovation-heading h1{font-family:Georgia,serif;font-size:clamp(38px,5vw,70px);font-weight:400;line-height:1.05;margin:0;letter-spacing:-2px}.renovation-heading h1 em{color:var(--red)}nav a[aria-current="page"]{color:var(--red);text-decoration:underline;text-underline-offset:5px}

/* Compact covers open the two local destination albums. */
.heritage-album{position:relative;display:block;width:100%;padding:0;border:0;background:transparent;text-align:left}.heritage-album img{display:block;width:100%;height:150px;object-fit:cover;object-position:center}.heritage-album-count{position:absolute;right:8px;bottom:8px;background:#24241fe6;color:#fff!important;padding:3px 9px;font-size:12px!important;border-radius:2px}.heritage-album:hover img{filter:brightness(1.08)}#lightbox.place-album #photo-caption{display:block}

/* Show every photograph in the selected heritage category. */
.place-category{margin-top:32px;padding-top:22px;border-top:1px solid var(--line)}.place-category[hidden]{display:none}.place-category>h3{font:400 28px Georgia,serif;margin:0 0 22px;color:var(--red)}.place-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.place-category-photo{display:block;width:100%;padding:0;border:0;background:#e2d9cb;aspect-ratio:4/3;overflow:hidden}.place-category-photo img{display:block;width:100%;height:100%;object-fit:cover}.heritage-album[aria-expanded=true]{outline:2px solid var(--red);outline-offset:5px}@media(max-width:800px){.place-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}@media(max-width:480px){.place-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
