/* KrystaPhotos — site styles for the modular renderer.
   Every colour, font and size comes from theme variables written by the
   renderer (see shared/render.js themeCSS), so KP Editor controls all of it. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: var(--fw-b, 400) var(--fs-b, 17px)/var(--lh-b, 1.7) var(--f-b, system-ui); letter-spacing: var(--ls-b, 0); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-h); font-weight: var(--fw-h); font-style: var(--fst-h); letter-spacing: var(--ls-h); font-variation-settings: var(--fvs-h); }
::selection { background: var(--c-accentLight, #c9a962); color: var(--c-ink, #111); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { position: fixed; left: 10px; top: 10px; z-index: 99; background: var(--c-ink); color: var(--c-bg); padding: 8px 14px; }
.spk { width: 14px; height: 14px; fill: var(--orn, var(--c-accent)); flex: none; }

/* ================================================================ header */
.hd { position: relative; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: var(--hpy, 18px) var(--gut); background: var(--hbg, transparent); color: var(--hfg, var(--c-inkSoft)); transition: background .5s ease, padding .5s ease, box-shadow .5s ease; }
.hd-sticky { position: sticky; top: 0; }
.hd-over { position: fixed; left: 0; right: 0; top: 0; }
.hd.scrolled { background: var(--hsbg, color-mix(in srgb, var(--c-bg) 86%, transparent)); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 var(--c-line); padding-top: calc(var(--hpy, 18px) * .66); padding-bottom: calc(var(--hpy, 18px) * .66); }
.hd-logo { display: block; flex: none; }
.hd-logo img { height: auto; }
.hd-name { font-family: var(--f-h); font-size: 1.4rem; }
.hd-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); flex-wrap: wrap; justify-content: flex-end; }
.hd-nav a { text-decoration: none; font-size: var(--fs-sm); letter-spacing: .03em; padding: 6px 0; position: relative; transition: color .3s ease; }
.hd-nav a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--c-accentLight, currentColor); transform: translateX(-50%) scale(0); transition: transform .35s ease; }
.hd-nav a:hover, .hd-nav a[aria-current="page"] { color: var(--hfga, var(--c-ink)); }
.hd-nav a:hover::after, .hd-nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.hd-nav .nav-btn { border: 1px solid var(--btn1-bd); color: var(--hfga, var(--c-ink)); padding: 9px 20px; border-radius: var(--btn-r); }
.hd-nav .nav-btn::after { display: none; }
.hd-nav .nav-btn:hover, .hd-nav .nav-btn[aria-current="page"] { background: var(--btn1-hbg); color: var(--btn1-hfg); border-color: var(--btn1-hbg); }
.hd-center { flex-wrap: wrap; justify-content: center; }
.hd-center .hd-logo { width: 100%; display: flex; justify-content: center; }
.hd-center .hd-nav { justify-content: center; width: 100%; }
.hd-burger { display: none; width: 46px; height: 46px; border: 0; background: none; color: var(--hfga, var(--c-ink)); position: relative; cursor: pointer; }
.hd-burger span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s ease; }
.hd-burger span:nth-child(1) { top: 18px; } .hd-burger span:nth-child(2) { top: 27px; }
.hd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hd-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 35; background: color-mix(in srgb, var(--c-bg) 98%, transparent); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 90px 24px; }
.mnav[hidden] { display: none; }
.mnav a { font-family: var(--f-a); font-style: var(--fst-a); font-variation-settings: var(--fvs-a); font-size: clamp(1.9rem, 7vw, 2.8rem); text-decoration: none; line-height: 1.25; color: var(--c-ink); }
.mnav a[aria-current="page"] { color: var(--c-accent); }

/* ================================================================ sections & grid */
.s { position: relative; padding: var(--pt, 90px) var(--gut) var(--pb, 90px); background: var(--sbg, transparent); isolation: isolate; }
.s-tall { min-height: var(--minh); display: flex; flex-direction: column; justify-content: var(--sac, center); }
.s-rtop { border-radius: var(--srt) var(--srt) 0 0 / min(var(--srt), 120px) min(var(--srt), 120px) 0 0; }
.g { position: relative; z-index: 2; width: 100%; max-width: var(--mw); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols, 12), minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--rg); align-items: var(--ai, start); }
.s-full .g { max-width: none; }
.s-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-repeat: no-repeat; }
.s-par { background-attachment: fixed; }
.s-ov { position: absolute; inset: 0; z-index: -1; }
.shp { position: absolute; left: 0; width: 100%; height: clamp(30px, 6vw, 90px); z-index: 1; fill: var(--shc, var(--c-bg)); pointer-events: none; }
.shp-top { top: -1px; }
.shp-bottom { bottom: -1px; }

.b { position: relative; grid-column: var(--c, 1) / span var(--sp, 12); grid-row: var(--r, auto) / span var(--rs, 1); align-self: var(--as, auto); justify-self: var(--js, stretch); margin: var(--mt, 0) var(--mr, 0) var(--mb, 0) var(--ml, 0); z-index: var(--z, auto); color: var(--fg, inherit); min-width: 0; }
.b.mx { max-width: var(--bmx); width: 100%; }
.b.mx[style*="text-align:center"] { justify-self: center; }
.b.boxed { background: var(--bbg, transparent); padding: var(--bpad, 0); border-radius: var(--brad, 0); border: var(--bbd, 0); box-shadow: var(--bsh, none); }
.b.is-hidden { opacity: .35; }

/* ================================================================ blocks */
.h { font-family: var(--ff, var(--f-h)); font-weight: var(--fw, var(--fw-h)); font-style: var(--fst, var(--fst-h)); letter-spacing: var(--ls, var(--ls-h)); text-transform: var(--tt, none); }
.h1 { font-size: var(--fs, var(--fs-h1)); line-height: var(--lh, var(--lh-h1)); font-variation-settings: var(--fvs-h); }
.h2 { font-size: var(--fs, var(--fs-h2)); line-height: var(--lh, var(--lh-h2)); }
.h3 { font-size: var(--fs, var(--fs-h3)); line-height: var(--lh, var(--lh-h3)); }
.h4 { font-size: var(--fs, 1.05rem); line-height: var(--lh, 1.4); }
.h a { color: inherit; text-decoration-color: color-mix(in srgb, var(--c-accent) 40%, transparent); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.rt { font-family: var(--ff, inherit); font-size: var(--fs, inherit); font-weight: var(--fw, inherit); font-style: var(--fst, normal); letter-spacing: var(--ls, inherit); line-height: var(--lh, inherit); text-transform: var(--tt, none); color: var(--fg, var(--c-inkSoft)); }
.rt.lead { font-size: var(--fs, var(--fs-lead)); line-height: var(--lh, var(--lh-lead)); }
.rt a { color: var(--acc, var(--c-accent)); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rt h3 { font-size: var(--fs-h3); margin: 1.2em 0 .5em; font-style: italic; color: var(--c-ink); }
.rt ul, .rt ol { padding-left: 1.2em; }
.rt.dc > p:first-child::first-letter, .rt.dc:not(:has(p))::first-letter { font-family: var(--f-a); font-style: var(--fst-a); font-weight: 300; font-variation-settings: var(--fvs-a); float: left; font-size: 4.6em; line-height: .78; margin: .08em .12em 0 -.02em; color: var(--acc, var(--c-accent)); }
.b-text .rt strong { color: var(--c-ink); }

/* images & masks */
.im { position: relative; }
.im-w { position: relative; overflow: hidden; isolation: isolate; filter: var(--shd, none); }
.im-w img { width: 100%; height: auto; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); filter: var(--flt, none); transition: transform 1.2s cubic-bezier(.22, .8, .2, 1), clip-path 1.6s cubic-bezier(.22, .8, .2, 1); }
.im-r .im-w img { aspect-ratio: var(--ar); height: 100%; }
.im-a { display: block; }
.im-f { position: absolute; inset: calc(var(--frg) * -1); border: var(--frw) solid var(--frc); pointer-events: none; transition: inset .9s cubic-bezier(.22, .8, .2, 1), border-color .6s ease; z-index: 0; }
.im-fs { border: 0; width: calc(100% + var(--frg) * 2); height: calc(100% + var(--frg) * 2); overflow: visible; }
.im-fs path { fill: none; stroke: var(--frc); stroke-width: var(--frw); vector-effect: non-scaling-stroke; }
.fr-outline .im-f { inset: 0; }
.fr-outline .im-fs { left: 0; top: 0; width: 100%; height: 100%; }
.fr-double .im-f { outline: var(--frw) solid var(--frc); outline-offset: 5px; }
.fr-shadow .im-w { filter: drop-shadow(0 26px 30px rgba(40, 30, 20, .28)); }
.fr-offset .im-w, .fr-outline .im-w, .fr-double .im-w { box-shadow: 0 1px 2px rgba(60, 50, 30, .05), 0 22px 50px -28px rgba(60, 50, 30, .28); }
.im:hover .im-f:not(.im-fs) { inset: calc(var(--frg) * -1 - 6px); border-color: var(--c-accent); }
.fr-outline:hover .im-f:not(.im-fs) { inset: -4px; }
.hv-zoom:hover .im-w img { transform: scale(1.05); }
.hv-gray .im-w img { filter: grayscale(1); }
.hv-gray:hover .im-w img { filter: var(--flt, none); }
.im figcaption { font-size: var(--fs-sm); color: var(--c-mist); margin-top: calc(var(--frg, 0px) + 14px); text-align: center; }
.im-empty { display: grid; place-items: center; gap: 8px; min-height: 220px; border: 1px dashed var(--c-line); border-radius: 12px; color: var(--c-mist); font-size: var(--fs-sm); text-align: center; align-content: center; }
.im-empty .spk { width: 26px; height: 26px; opacity: .6; }
.lbx .im-w { cursor: zoom-in; }

/* arch windows open as they come into view */
.motion .uv .im-w img { clip-path: inset(100% 0 0 0); }
.motion .uv.open .im-w img { clip-path: inset(0 0 0 0); }
.motion .uv .im-f { opacity: 0; transition: opacity 1s ease .7s, inset .9s cubic-bezier(.22, .8, .2, 1); }
.motion .uv.open .im-f { opacity: 1; }

/* simple entrance animations */
.motion .an { opacity: 0; transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.22, .8, .2, 1); }
.motion .an-rise { transform: translateY(28px); }
.motion .an-zoom { transform: scale(.96); }
.motion .an.open { opacity: 1; transform: none; }

/* hero entrance: window opens like a door at dusk */
.motion .s-intro .b-image .im-w img { clip-path: inset(0 50% 0 50%); transition: clip-path 1.9s cubic-bezier(.22, .8, .2, 1) .15s; }
.motion .s-intro .b-image .im-f { opacity: 0; transform: scale(.96); transition: opacity 1.2s ease 1.2s, transform 1.4s ease 1.1s, inset .9s ease; }
.motion .s-intro .b:not(.b-image) { opacity: 0; transform: translateY(18px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.22, .8, .2, 1); }
.motion .s-intro .b:not(.b-image):nth-child(2) { transition-delay: .2s; }
.motion .s-intro .b:not(.b-image):nth-child(3) { transition-delay: .4s; }
.motion .s-intro .b:not(.b-image):nth-child(n+4) { transition-delay: .6s; }
.motion.ready .s-intro .b-image .im-w img { clip-path: inset(0 0 0 0); }
.motion.ready .s-intro .b-image .im-f { opacity: 1; transform: none; }
.motion.ready .s-intro .b:not(.b-image) { opacity: 1; transform: none; }

/* fireflies */
.ffl { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.ffl i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--ff-color); box-shadow: 0 0 8px 2px color-mix(in srgb, var(--ff-color) 45%, transparent); opacity: 0; animation: ffly 11s ease-in-out infinite; }
.ffl i:nth-child(1) { left: 12%; top: 70%; animation-delay: -1s; }
.ffl i:nth-child(2) { left: 22%; top: 30%; animation-delay: -4s; animation-duration: 13s; }
.ffl i:nth-child(3) { left: 35%; top: 82%; animation-delay: -7s; }
.ffl i:nth-child(4) { left: 48%; top: 18%; animation-delay: -2s; animation-duration: 15s; }
.ffl i:nth-child(5) { left: 58%; top: 64%; animation-delay: -9s; }
.ffl i:nth-child(6) { left: 66%; top: 26%; animation-delay: -5s; animation-duration: 12s; }
.ffl i:nth-child(7) { left: 76%; top: 76%; animation-delay: -3s; }
.ffl i:nth-child(8) { left: 86%; top: 40%; animation-delay: -8s; animation-duration: 14s; }
.ffl i:nth-child(9) { left: 92%; top: 12%; animation-delay: -6s; }
.ffl i:nth-child(10) { left: 6%; top: 44%; animation-delay: -10s; animation-duration: 16s; }
.ffl i:nth-child(11) { left: 40%; top: 52%; animation-delay: -12s; }
.ffl i:nth-child(12) { left: 72%; top: 54%; animation-delay: -14s; animation-duration: 13s; }
.ffl i:nth-child(13) { left: 28%; top: 10%; animation-delay: -11s; }
.ffl i:nth-child(14) { left: 82%; top: 88%; animation-delay: -13s; animation-duration: 17s; }
@keyframes ffly { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: .9; } 50% { opacity: .35; transform: translate(26px, -38px); } 75% { opacity: .85; } 100% { opacity: 0; transform: translate(-14px, -70px); } }

/* ornament */
.orn { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--orn); }
.orn span { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--orn)); }
.orn span:last-child { transform: scaleX(-1); }
.orn-line span { width: 100%; max-width: 240px; background: var(--orn); opacity: .5; }
.orn-line span:last-child { transform: none; }
.orn-dots { gap: 10px; }
.orn-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--orn); }
.orn-space { height: 1px; }

/* galleries */
.gal-masonry { columns: var(--gcols) 220px; column-gap: var(--ggap); }
.gal-masonry .im { break-inside: avoid; margin-bottom: var(--ggap); }
.gal-grid { display: grid; grid-template-columns: repeat(var(--gcols), minmax(0, 1fr)); gap: var(--ggap); }
.gal-row { display: flex; gap: var(--ggap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.gal-row .im { flex: 0 0 auto; width: min(70vw, 420px); scroll-snap-align: start; }

/* quotes */
.q { position: relative; padding-top: 40px; }
.q-mark { position: absolute; top: -.25em; left: 50%; transform: translateX(-50%); font-family: var(--f-a); font-size: 7rem; line-height: 1; color: var(--acc, var(--c-accent)); opacity: .55; font-style: italic; }
[style*="text-align:left"] .q-mark { left: 0; transform: none; }
.q blockquote { margin: 0; font-family: var(--ff, var(--f-a)); font-style: var(--fst, var(--fst-a)); font-weight: var(--fw, 300); font-variation-settings: var(--fvs-a); font-size: var(--fs, var(--fs-quote)); line-height: var(--lh, var(--lh-quote)); color: var(--fg, var(--c-ink)); }
.q figcaption { margin-top: 20px; color: var(--acc, var(--c-accent)); font-size: var(--fs-sm); letter-spacing: .04em; }
.q-label { color: var(--acc, var(--c-accent)); font-size: var(--fs-sm); margin-bottom: 12px; }
.q-card { padding: clamp(30px, 4vw, 56px); padding-top: clamp(60px, 6vw, 80px); border: 1px solid var(--c-accentLine); border-radius: 300px 300px 18px 18px; background: var(--c-surface); box-shadow: 0 1px 2px rgba(60, 50, 30, .05), 0 22px 50px -28px rgba(60, 50, 30, .28); }
.q-card .q-mark { top: .1em; }
.q-big blockquote { font-size: var(--fs, var(--fs-h2)); line-height: 1.25; }
.q-line { padding-top: 0; padding-left: 28px; border-left: 1px solid var(--acc, var(--c-accent)); }
.q-line .q-mark { display: none; }

/* lists */
.lst { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--fg, var(--c-inkSoft)); font-size: var(--fs, inherit); }
.lst li { display: flex; gap: 14px; align-items: flex-start; }
.lst .spk { width: 11px; height: 11px; margin-top: .55em; }
.lst-dot li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc, var(--c-accent)); margin-top: .7em; flex: none; }
.lst-dash li::before { content: "—"; color: var(--acc, var(--c-accent)); }
.lst-number { counter-reset: n; }
.lst-number li::before { counter-increment: n; content: counter(n); font-family: var(--f-a); color: var(--acc, var(--c-accent)); min-width: 1.4em; }
.lst-line li { border-bottom: 1px solid var(--c-line); padding-bottom: 12px; }

/* statements, tagline */
.stmt-l { color: var(--acc, var(--c-accent)); font-size: var(--fs-sm); letter-spacing: .06em; margin-bottom: 10px; }
.stmt-t { font-family: var(--ff, var(--f-a)); font-weight: var(--fw, 300); font-style: var(--fst, var(--fst-a)); font-variation-settings: var(--fvs-a); font-size: var(--fs, var(--fs-h2)); line-height: 1.12; margin: 0; color: var(--fg, var(--c-ink)); }
.tagline { font-family: var(--ff, var(--f-h)); font-weight: var(--fw, 300); font-variation-settings: var(--fvs-h); font-size: var(--fs, var(--fs-h2)); line-height: 1.2; margin: 0; color: var(--fg, var(--c-ink)); }
.tag-s { display: inline-flex; vertical-align: middle; margin: 0 .2em; }
.tag-s .spk { width: .55em; height: .55em; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }
[style*="text-align:center"] > .btns { justify-content: center; }
[style*="text-align:right"] > .btns { justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; font: var(--btn-fw) var(--btn-fs)/1 var(--f-b); letter-spacing: var(--btn-ls); text-transform: var(--btn-tt); padding: var(--btn-py) var(--btn-px); border-radius: var(--btn-r); transition: background .35s ease, color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.22, .8, .2, 1), border-color .35s ease; }
.btn-primary { background: var(--btn1-bg); color: var(--btn1-fg); border: 1px solid var(--btn1-bd); }
.btn-primary:hover, .btn-solid { background: var(--btn1-hbg); color: var(--btn1-hfg); border: 1px solid var(--btn1-hbg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-accentLight) 16%, transparent), 0 14px 40px -16px rgba(60, 50, 30, .45); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-solid:hover { filter: brightness(.8); }
.btn-secondary { background: var(--btn2-bg); color: var(--btn2-fg); border: 1px solid var(--btn2-bd); }
.btn-secondary:hover { background: var(--btn2-hbg); color: var(--btn2-hfg); }
.btn-link { padding: 4px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; color: inherit; }
.btn-link:hover { opacity: .7; }

/* cards (journal) */
.cards { display: grid; grid-template-columns: repeat(var(--ccols), minmax(0, 1fr)); gap: clamp(30px, 3vw, 46px); }
.card { text-decoration: none; display: flex; flex-direction: column; }
.cards-arch .card { background: var(--c-surface); border: 1px solid color-mix(in srgb, var(--c-accent) 18%, transparent); border-radius: 220px 220px 14px 14px; padding: 14px 14px 26px; box-shadow: 0 1px 2px rgba(60, 50, 30, .05), 0 22px 50px -28px rgba(60, 50, 30, .28); transition: transform .6s cubic-bezier(.22, .8, .2, 1), border-color .5s ease; }
.cards-arch .card:hover { transform: translateY(-6px); border-color: var(--c-accentLine); }
.cards-plain .card .card-b { text-align: left; padding: 16px 0 0; }
.cards-overlay .card { position: relative; color: #fff; }
.cards-overlay .card .card-b { position: absolute; inset: auto 0 0 0; padding: 26px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); text-align: left; }
.cards-overlay .card-cat, .cards-overlay .card-ex, .cards-overlay .card-go { color: #f5efe4; }
.card .im-w img { transition: transform 1.2s cubic-bezier(.22, .8, .2, 1); }
.card:hover .im-w img { transform: scale(1.05); }
.card-b { padding: 22px 12px 0; display: flex; flex-direction: column; flex: 1; text-align: center; }
.card-cat { font-size: .78rem; color: var(--c-accent); letter-spacing: .05em; margin-bottom: 10px; }
.card h3 { font-size: 1.32rem; line-height: 1.3; margin-bottom: 12px; font-weight: var(--fw-h); }
.card-ex { font-size: .92rem; color: var(--c-mist); line-height: 1.6; }
.card-go { margin-top: auto; padding-top: 10px; font-size: var(--fs-sm); color: var(--c-accent); }

/* reviews */
.rvs { columns: var(--rcols) 340px; column-gap: 26px; }
.rv { break-inside: avoid; margin: 0 0 26px; padding: 30px 30px 26px; background: var(--c-surface); border: 1px solid color-mix(in srgb, var(--c-accent) 16%, transparent); border-radius: 18px; box-shadow: 0 1px 2px rgba(60, 50, 30, .05), 0 22px 50px -28px rgba(60, 50, 30, .28); }
.rv-m { color: var(--c-accent); font-size: var(--fs-sm); margin-bottom: 12px; }
.rv-stars { letter-spacing: .28em; font-size: 1rem; }
.rv blockquote { margin: 0; color: var(--c-inkSoft); line-height: 1.7; }
.rv figcaption { margin-top: 12px; color: var(--c-ink); font-size: var(--fs-sm); }
.rv details { margin-top: 14px; font-size: var(--fs-sm); color: var(--c-mist); }
.rv summary { cursor: pointer; color: var(--c-accent); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(var(--scols), minmax(0, 1fr)); gap: 20px; text-align: center; }
.stats div { padding: 26px 10px; border-top: 1px solid var(--c-accentLine); }
.stats strong { display: block; font-family: var(--f-a); font-weight: 300; font-size: var(--fs, var(--fs-h2)); color: var(--acc, var(--c-accent)); line-height: 1.1; font-variation-settings: var(--fvs-a); }
.stats span { color: var(--c-mist); font-size: var(--fs-sm); }

/* forms */
.frm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.frm-card { padding: clamp(28px, 4vw, 60px); padding-top: clamp(90px, 12vw, 150px); border: 1px solid var(--c-accentLine); border-radius: 380px 380px 20px 20px; background: var(--c-surface); box-shadow: 0 1px 2px rgba(60, 50, 30, .05), 0 22px 50px -28px rgba(60, 50, 30, .28); }
.frm-boxed { padding: clamp(24px, 3vw, 44px); border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-surface); }
.fld { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld.half { grid-column: span 1; }
.fld label, .fld legend { color: var(--c-inkSoft); font-size: var(--fs-sm); padding: 0; }
.fld input, .fld textarea, .fld select { font: 400 1.1rem/1.4 var(--f-b); color: var(--c-ink); background: transparent; border: 0; border-bottom: 1px solid var(--c-line); padding: 8px 0 10px; border-radius: 0; width: 100%; transition: border-color .3s ease; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-bottom-color: var(--c-accent); }
.fld [aria-invalid="true"] { border-bottom-color: #c0573f; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; border: 1px solid var(--c-line); border-radius: 999px; padding: 9px 18px; font-size: var(--fs-sm); transition: background .3s, color .3s, border-color .3s; }
.chip input:checked + span { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.frm .btn { justify-self: start; }
.frm-note { grid-column: 1 / -1; margin: 0; color: var(--c-mist); min-height: 1.6em; }

/* badges, logo, links, social, embed */
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px 44px; }
[style*="text-align:left"] > .badges { justify-content: flex-start; }
.badges img { width: auto; object-fit: contain; }
.badges-gray img { filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.badges-gray a:hover img { filter: none; opacity: 1; }
.lg { display: inline-block; }
.lg img { height: auto; }
[style*="text-align:center"] > .lg { display: block; } [style*="text-align:center"] > .lg img { margin: 0 auto; }
.lnk { display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: var(--fs, var(--fs-sm)); letter-spacing: .04em; }
.lnk-column { flex-direction: column; gap: 8px; }
[style*="text-align:center"] > .lnk { justify-content: center; }
.lnk a { text-decoration: none; }
.lnk a:hover { text-decoration: underline; text-underline-offset: 4px; }
.soc { display: flex; gap: 16px; }
[style*="text-align:center"] > .soc { justify-content: center; }
.soc a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 50%; transition: background .3s, color .3s; }
.soc a:hover { background: var(--c-ink); color: var(--c-bg); }
.soc svg { width: 17px; height: 17px; fill: currentColor; }
.emb { width: 100%; }
.emb iframe { width: 100%; height: 100%; border: 0; display: block; }
.raw { min-height: 10px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--c-bg) 97%, transparent); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; justify-items: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 88vh; object-fit: contain; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .4); }
.lb button { background: none; border: 0; color: var(--c-ink); cursor: pointer; width: 60px; height: 60px; position: relative; }
.lb-x { position: absolute; top: 16px; right: 16px; font-size: 32px; line-height: 1; }
.lb-p::before, .lb-n::before { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.lb-p::before { transform: translate(-30%, -50%) rotate(-45deg); }
.lb-n::before { transform: translate(-70%, -50%) rotate(135deg); }

/* ================================================================ footer */
.ft { position: relative; }

/* ================================================================ tablet */
@media (max-width: 1024px) {
  .b.has-t { grid-column: var(--tc, var(--c, 1)) / span var(--tsp, var(--sp, 12)); }
  .b.ht { display: none; }
  .cards { grid-template-columns: repeat(min(var(--ccols), 2), minmax(0, 1fr)); }
}
@media (min-width: 1025px) { .b.hd { display: none; } }

/* ================================================================ phone */
@media (max-width: 760px) {
  .hd-nav { display: none; }
  .hd-burger { display: block; }
  .hd { padding-left: var(--gut); padding-right: var(--gut); }
  .hd-logo img { max-width: 110px; }
  .s { padding-top: calc(var(--pt, 90px) * .62); padding-bottom: calc(var(--pb, 90px) * .62); }
  .s-tall { min-height: auto; }
  .g { column-gap: 12px; row-gap: calc(var(--rg) * .7); }
  .b { grid-column: 1 / -1; grid-row: auto; order: var(--mo, 0); margin-top: var(--mmt, 0); margin-left: 0; margin-right: 0; justify-self: stretch; }
  .b.has-m { grid-column: auto / span var(--msp); }
  .b.hm { display: none; }
  .b-image .im { max-width: 520px; margin-left: auto; margin-right: auto; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .frm { grid-template-columns: 1fr; }
  .fld.half { grid-column: 1 / -1; }
  .frm-card { border-radius: 200px 200px 18px 18px; }
  .s-rtop { border-radius: 60% 60% 0 0 / 60px 60px 0 0; }
  .s-par { background-attachment: scroll; }
  .lb { grid-template-columns: 44px 1fr 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ffl { display: none; }
}

/* in the editor everything is shown in its final state */
.kp-edit .uv .im-w img, .kp-edit .s-intro .b { clip-path: none !important; opacity: 1 !important; transform: none !important; }
