/* ==========================================================================
   Orchid Springs Village — public site styles
   ========================================================================== */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --plum: #2B0F3A;
  --plum-2: #451B5C;
  --orchid: #B8327F;
  --orchid-2: #D9479A;
  --violet: #8B4FD1;
  --lime: #D7F25C;
  --peach: #FFB27A;
  --sky: #7FD3E8;
  --cream: #FBF6F0;
  --mist: #F3E9F6;
  --line: rgba(43, 15, 58, .12);
  --text: #2B0F3A;
  --muted: #6B5874;
  --white: #fff;
  --radius: 22px;
  --radius-lg: 36px;
  --shadow: 0 18px 50px -18px rgba(43, 15, 58, .35);
  --shadow-sm: 0 6px 20px -8px rgba(43, 15, 58, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --head: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--cream); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--orchid); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons & chips ---------- */
.btn { --bg: var(--plum); --fg: #fff; display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--orchid), var(--violet)); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(0) scale(.97); }
.btn .i { transition: transform .35s var(--spring); }
.btn:hover .i { transform: translateX(4px) rotate(-8deg); }
.btn-lime { --bg: var(--lime); --fg: var(--plum); }
.btn-lime::before { background: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--plum); box-shadow: inset 0 0 0 2px var(--plum); }
.btn-ghost::before { background: var(--plum); }
.btn-ghost:hover { color: #fff; }
.btn-light { --bg: rgba(255,255,255,.14); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-sm { padding: .65em 1.1em; font-size: .9rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--orchid); margin-bottom: 1.1em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .38em .85em; border-radius: 999px; background: var(--mist); color: var(--plum-2); font-size: .82rem; font-weight: 700; }
.chip.lime { background: var(--lime); color: var(--plum); }
.chip.peach { background: #FFE2CC; color: #8A3B00; }
.chip.sky { background: #D8F2F9; color: #0D5466; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 14px 0 auto; z-index: 100; transition: transform .45s var(--ease); }
.site-header.hide { transform: translateY(-130%); }
.nav { display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 20px; border-radius: 999px; background: rgba(251, 246, 240, .78); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-sm); border: 1px solid rgba(43,15,58,.08); }
.brand { display: flex; white-space: nowrap; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); font: 800 1.15rem/1 var(--head); letter-spacing: -.02em; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; transition: transform .8s var(--spring); }
.brand:hover .brand-mark { transform: rotate(144deg) scale(1.08); }
.brand small { display: block; font: 600 .68rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: .6em .95em; border-radius: 999px; color: var(--plum); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; transition: background .25s, color .25s; }
.nav-links a:hover { background: var(--mist); }
.nav-links a[aria-current="page"] { background: var(--plum); color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--plum); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .35s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1140px) {
  .nav-toggle { display: grid; }
  .nav .btn-portal { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .nav .btn-portal span { display: none; }
  .nav-open .btn-portal { visibility: hidden; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: var(--plum);
    clip-path: circle(0 at calc(100% - 46px) 40px); transition: clip-path .7s var(--ease); }
  .nav-open .nav-links { clip-path: circle(150% at calc(100% - 46px) 40px); }
  .nav-links a { color: #fff; font: 700 clamp(1.8rem, 7vw, 2.6rem)/1.2 var(--head); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .5s var(--ease); }
  .nav-open .nav-links a { opacity: 1; transform: none; }
  .nav-open .nav-links li:nth-child(2) a { transition-delay: .05s; } .nav-open .nav-links li:nth-child(3) a { transition-delay: .1s; }
  .nav-open .nav-links li:nth-child(4) a { transition-delay: .15s; } .nav-open .nav-links li:nth-child(5) a { transition-delay: .2s; }
  .nav-open .nav-links li:nth-child(6) a { transition-delay: .25s; } .nav-open .nav-links li:nth-child(7) a { transition-delay: .3s; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: transparent; color: var(--lime); }
  .nav-open .brand { color: #fff; position: relative; z-index: 1; }
  .nav-open .brand small { color: rgba(255,255,255,.6); }
  .nav-open .nav { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; }
  .nav-open .nav-toggle { background: var(--lime); color: var(--plum); }
  body.nav-open { overflow: hidden; }
}

/* ---------- loader (home only) ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--plum); color: #fff; transition: clip-path 1s var(--ease) .1s, visibility 0s 1.2s;
  clip-path: inset(0 0 0 0 round 0); }
.loader.done { clip-path: inset(0 0 100% 0 round 0 0 50% 50%); visibility: hidden; }
.loader-inner { display: grid; justify-items: center; text-align: center; }
.loader-bloom { width: 190px; height: 190px; overflow: visible; }
/* each part grows out of the flower's heart; rotation lives on the parent <g>, so it is never overridden */
.loader-bloom .part { transform-box: view-box; transform-origin: 60px 60px; transform: scale(0) rotate(-24deg); opacity: 0; animation: unfurl .9s var(--spring) forwards; }
.loader-bloom .column { transform-box: view-box; transform-origin: 60px 62px; transform: scale(0); animation: pop .55s var(--spring) 1.05s forwards; }
.loader-bloom .flower { transform-box: view-box; transform-origin: 60px 64px; animation: sway 3.2s ease-in-out 1.5s infinite; }
.loader-bloom .glow { transform-box: view-box; transform-origin: 60px 60px; transform: scale(.4); opacity: 0; animation: glow 2.4s ease-in-out .6s infinite; }
.loader-bloom .spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: spark 1.8s ease-in-out infinite; }
.loader-word { margin-top: 14px; font: 700 1.35rem/1.2 var(--head); letter-spacing: -.01em; display: flex; white-space: nowrap; overflow: hidden; padding: 2px 4px 4px; }
.loader-word span { display: inline-block; opacity: 0; transform: translateY(105%); animation: rise .6s var(--ease) forwards; }
.loader-bar { width: 170px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); margin: 18px auto 0; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--orchid-2)); border-radius: inherit; transition: width .4s var(--ease); }
@keyframes unfurl { 0% { transform: scale(0) rotate(-24deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.03); } }
@keyframes glow { 0%, 100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1); opacity: .9; } }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(.3) translateY(4px); } 50% { opacity: 1; transform: scale(1.2) translateY(-4px); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: none; } }
body.loading { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--orchid); font-style: italic; font-weight: 600; }
.hero h1 .squiggle { position: relative; white-space: nowrap; }
.hero h1 .squiggle svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .35em; stroke: var(--lime); stroke-width: 9; fill: none; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s var(--ease) .9s forwards; z-index: -1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; padding-top: 26px; border-top: 1px dashed var(--line); }
.hero-meta div { font-size: .9rem; color: var(--muted); }
.hero-meta strong { display: block; font: 800 2rem/1 var(--head); color: var(--plum); letter-spacing: -.03em; }
.hero-art { position: relative; aspect-ratio: 1 / 1.05; }
.hero-art .shot { position: absolute; overflow: hidden; box-shadow: var(--shadow); background: var(--mist); }
.hero-art .shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.hero-art .shot:hover img { transform: scale(1.02); }
.shot-a { inset: 0 18% 22% 0; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; animation: morph 14s ease-in-out infinite; }
.shot-b { width: 50%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 30px; border: 8px solid var(--cream); rotate: 5deg; }
.shot-c { width: 30%; aspect-ratio: 1; right: 4%; top: 2%; border-radius: 50%; border: 6px solid var(--cream); }
@keyframes morph { 50% { border-radius: 58% 42% 52% 48% / 44% 58% 42% 56%; } }
.sticker { position: absolute; left: -4%; bottom: 10%; z-index: 3; width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--plum);
  font: 800 .78rem/1.15 var(--head); text-align: center; text-transform: uppercase; letter-spacing: .04em; box-shadow: var(--shadow-sm); rotate: -12deg; }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 18s linear infinite; }
.sticker text { font: 700 10.5px var(--body); letter-spacing: 2.6px; fill: var(--plum); text-transform: uppercase; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; background: #F4B6DA; top: -120px; right: -120px; animation: drift 16s ease-in-out infinite alternate; }
.blob-2 { width: 380px; height: 380px; background: #E4F7A0; bottom: -140px; left: -100px; animation: drift 19s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 300px; height: 300px; background: #CDB7F5; top: 40%; left: 40%; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 150px 0 70px; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 14ch; }
.page-hero p { max-width: 40em; color: var(--muted); font-size: 1.15rem; }
.page-hero .crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumbs a { color: inherit; }
.page-hero-img { margin-top: 46px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; box-shadow: var(--shadow); }
.page-hero-img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }

/* ---------- marquee ---------- */
.marquee { background: var(--plum); color: #fff; padding: 20px 0; overflow: hidden; rotate: -1.5deg; margin: 10px -10px; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scroll 32s linear infinite; font: 700 clamp(1.3rem, 2.6vw, 2rem)/1 var(--head); letter-spacing: -.02em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 46px; white-space: nowrap; }
.marquee-track span::after { content: "✿"; color: var(--lime); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.section-head h2 { max-width: 15ch; margin: 0; }
.section-head p { max-width: 30em; color: var(--muted); margin: 0; }
.bg-mist { background: var(--mist); }
.bg-plum { background: var(--plum); color: #fff; }
.bg-plum .eyebrow { color: var(--lime); }
.bg-plum .section-head p, .bg-plum .muted { color: rgba(255,255,255,.72); }
.muted { color: var(--muted); }

/* ---------- bento amenities ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 18px; }
.tile { position: relative; border-radius: var(--radius); padding: 26px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--spring), box-shadow .5s var(--ease); transform-style: preserve-3d; }
.tile:hover { box-shadow: var(--shadow); }
.tile h3 { margin: 0 0 .3em; font-size: 1.3rem; }
.tile p { margin: 0; font-size: .95rem; color: var(--muted); }
.tile .tile-ico { position: absolute; top: 22px; left: 22px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mist); color: var(--orchid); transition: transform .5s var(--spring); }
.tile:hover .tile-ico { transform: rotate(-12deg) scale(1.12); }
.tile .tile-ico .i { width: 26px; height: 26px; }
.tile.photo { color: #fff; padding: 26px; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1s var(--ease); }
.tile.photo:hover img { transform: scale(1.08); }
.tile.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(43,15,58,.85)); z-index: 1; }
.tile.photo > :not(img) { position: relative; z-index: 2; }
.tile.photo p { color: rgba(255,255,255,.85); }
.tile.lime { background: var(--lime); } .tile.lime p { color: var(--plum-2); }
.tile.orchid { background: var(--orchid); color: #fff; } .tile.orchid p { color: rgba(255,255,255,.85); } .tile.orchid .tile-ico { background: rgba(255,255,255,.18); color: #fff; }
.tile.plum { background: var(--plum); color: #fff; } .tile.plum p { color: rgba(255,255,255,.75); } .tile.plum .tile-ico { background: rgba(255,255,255,.1); color: var(--lime); }
.span-2 { grid-column: span 2; } .row-2 { grid-row: span 2; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .bento .row-2 { grid-row: span 1; } }

/* ---------- split / story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-wide { grid-template-columns: 1.4fr 1fr; }
.split > * { min-width: 0; }
.stack-img { position: relative; aspect-ratio: 4/5; }
.stack-img img { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.stack-img img:first-child { inset: 0 22% 14% 0; width: 78%; height: 86%; }
.stack-img img:last-child { width: 55%; height: 48%; right: 0; bottom: 0; border: 7px solid var(--cream); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B0F3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/15px no-repeat; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 30px 26px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: transform .5s var(--spring), background .3s; }
.stat:hover { transform: translateY(-8px) rotate(-1deg); background: rgba(255,255,255,.1); }
.stat strong { display: block; font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--head); letter-spacing: -.04em; color: var(--lime); }
.stat span { color: rgba(255,255,255,.75); font-size: .95rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards (news, events, board, docs) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 var(--line); position: relative; transition: transform .45s var(--spring), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.card .body { color: var(--muted); font-size: .97rem; white-space: pre-line; }
.card.pinned { box-shadow: inset 0 0 0 2px var(--orchid); }
.date-badge { flex: none; width: 66px; border-radius: 16px; overflow: hidden; text-align: center; background: var(--mist); font-family: var(--head); }
.date-badge b { display: block; background: var(--orchid); color: #fff; font-size: .72rem; letter-spacing: .12em; padding: 5px 0; text-transform: uppercase; }
.date-badge span { display: block; font-size: 1.7rem; font-weight: 800; padding: 6px 0 8px; line-height: 1; }
.event-row { display: flex; gap: 18px; align-items: flex-start; }
.empty { text-align: center; padding: 50px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty .i { width: 40px; height: 40px; color: var(--orchid); margin: 0 auto 10px; }
.skeleton { background: linear-gradient(90deg, #efe6f2 25%, #f8f2fa 50%, #efe6f2 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); min-height: 140px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- gallery ---------- */
.masonry { columns: 3 300px; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: var(--mist); }
.masonry img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; }
.masonry figure:hover img { transform: scale(1.06); filter: saturate(1.2); }
.masonry figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.92); font-size: .88rem; font-weight: 600;
  transform: translateY(calc(100% + 14px)); transition: transform .45s var(--spring); }
.masonry figure:hover figcaption, .masonry figure:focus-visible figcaption { transform: none; }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.strip figure { flex: 0 0 min(340px, 78vw); aspect-ratio: 4/3; margin: 0; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; cursor: zoom-in; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.strip figure:hover img { transform: scale(1.07) rotate(.6deg); }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(23, 6, 32, .94); display: grid; place-items: center; padding: 60px 16px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox img { max-height: 80vh; max-width: min(1200px, 100%); border-radius: 18px; transform: scale(.94); transition: transform .5s var(--spring); }
.lightbox.open img { transform: none; }
.lightbox p { color: #fff; text-align: center; margin-top: 14px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); }
.lightbox button:hover { background: var(--orchid); transform: scale(1.1); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font: 700 1.08rem/1.35 var(--head); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--orchid); font-size: 1.4rem; transition: transform .4s var(--spring), background .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--lime); color: var(--plum); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); white-space: pre-line; }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 80px); background: var(--orchid); color: #fff; overflow: hidden; isolation: isolate; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.cta::before { width: 420px; height: 420px; right: -120px; top: -160px; background: var(--violet); animation: drift 12s ease-in-out infinite alternate; }
.cta::after { width: 260px; height: 260px; right: 22%; bottom: -150px; background: var(--peach); opacity: .8; animation: drift 15s ease-in-out infinite alternate-reverse; }
.cta h2 { max-width: 16ch; }
.cta p { max-width: 34em; color: rgba(255,255,255,.88); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; background: #fff; font: inherit; color: var(--text);
  box-shadow: 0 0 0 1px var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 5px rgba(139,79,209,.15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #D33F49; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: .95rem; display: none; }
.notice.show { display: block; animation: pop-in .45s var(--spring); }
.notice.ok { background: #E6F7D2; color: #2F5B0B; }
.notice.err { background: #FDE3E6; color: #9A1B2A; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.panel { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }

/* ---------- contact / info list ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.6); transition: transform .4s var(--spring), background .3s; }
.info-list li:hover { transform: translateX(6px); background: #fff; }
.info-list .ico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--lime); color: var(--plum); display: grid; place-items: center; }
.info-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.bg-plum .info-list li { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #fff; }
.bg-plum .info-list li:hover { background: rgba(255,255,255,.13); }
.bg-plum .info-list b { color: var(--lime); }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); filter: saturate(.85) hue-rotate(-8deg); }

/* ---------- portal ---------- */
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--plum); display: grid; place-items: center; font: 800 1.1rem var(--head); }

/* ---------- board ---------- */
.board-card { text-align: center; }
.board-card .photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; background: linear-gradient(135deg, var(--orchid), var(--violet)); display: grid; place-items: center; color: #fff; font: 800 2.2rem var(--head);
  transition: transform .5s var(--spring), border-radius .5s var(--ease); }
.board-card:hover .photo { transform: rotate(-6deg) scale(1.05); border-radius: 38%; }
.board-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.board-card .role { color: var(--orchid); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }

/* ---------- calendar ---------- */
:root { --ev-management: #3B2A6B; --ev-service: #5B6478; --ev-social: #B8327F; --ev-landscaping: #4E7D3A; --ev-meeting: #7A4BC2; }
.events-layout { width: min(1440px, 100% - 32px); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.events-layout > * { min-width: 0; }
.ev-side { background: #fff; border-radius: var(--radius-lg); padding: 24px 18px 18px; box-shadow: var(--shadow); position: sticky; top: 100px; }
.ev-side-head { padding: 0 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ev-side-head h3 { margin: 8px 0 0; font-size: 1.35rem; }
.ev-side-list { display: grid; gap: 6px; max-height: calc(100vh - 230px); overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.ev-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 16px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: background .2s, transform .3s var(--spring); }
.ev-row:hover { background: var(--cream); transform: translateX(4px); }
.ev-date { flex: none; width: 50px; height: 54px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: var(--evc, var(--orchid)); color: #fff; line-height: 1; }
.ev-date b { font: 800 1.3rem/1 var(--head); }
.ev-date small { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .85; margin-top: 3px; }
.ev-txt { flex: 1; min-width: 0; }
.ev-txt b { display: block; font-size: .97rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-txt small { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--evc, var(--orchid)); }
.ev-row.management { --evc: var(--ev-management); } .ev-row.service { --evc: var(--ev-service); } .ev-row.social { --evc: var(--ev-social); } .ev-row.landscaping { --evc: var(--ev-landscaping); } .ev-row.meeting { --evc: var(--ev-meeting); }
@media (max-width: 1180px) { .events-layout { grid-template-columns: 1fr; } .ev-side { position: static; } .ev-side-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.cal-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 30px); box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-head h3 { margin: 0; min-width: 190px; text-align: center; font-size: 1.6rem; }
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; display: grid; place-items: center; color: var(--plum); transition: transform .3s var(--spring), background .2s; }
.icon-btn:hover { background: var(--lime); transform: scale(1.08); }
.cal-scroll { overflow-x: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 760px; }
.cal .dow { text-align: center; font: 800 .74rem/1 var(--body); color: #fff; text-transform: uppercase; letter-spacing: .14em; padding: 14px 0; background: var(--plum); border-right: 1px solid rgba(255,255,255,.12); }
.cal .dow:last-of-type { border-right: 0; }
.cal .day { min-height: 118px; padding: 8px 7px; background: #fff; font-size: .85rem; border-right: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: background .25s; }
.cal .day:nth-child(7n + 7) { border-right: 0; }
.cal .day:hover { background: #FDFAFE; }
.cal .day.out { background: #F5EFF7; color: #A595AD; }
.cal .day.today { background: #F7EEF6; box-shadow: inset 0 0 0 2px var(--orchid); }
.cal .day .n { font-weight: 800; font-size: .82rem; margin: 0 0 2px 2px; }
.ev { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; padding: 5px 8px; border-radius: 8px; font: 700 .74rem/1.25 var(--body); color: #fff; background: var(--evc, var(--ev-social));
  border-left: 3px solid rgba(0,0,0,.22); overflow: hidden; transition: transform .25s var(--spring), filter .2s; }
.ev:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.08); }
.ev small { display: block; font-weight: 800; opacity: .85; font-size: .68rem; letter-spacing: .02em; }
.ev span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.management, .ev-pill.management, .lg.management { --evc: var(--ev-management); }
.ev.service, .ev-pill.service, .lg.service { --evc: var(--ev-service); }
.ev.social, .ev-pill.social, .lg.social { --evc: var(--ev-social); }
.ev.landscaping, .ev-pill.landscaping, .lg.landscaping { --evc: var(--ev-landscaping); }
.ev.meeting, .ev-pill.meeting, .lg.meeting { --evc: var(--ev-meeting); }
.ev-pill { display: inline-flex; align-items: center; gap: 6px; padding: .35em .85em; border-radius: 999px; font-size: .78rem; font-weight: 800; color: #fff; background: var(--evc, var(--ev-social)); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .86rem; margin-top: 16px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; background: var(--evc); }
.ev-dialog { border: 0; max-width: 560px; width: calc(100% - 32px); padding: 32px; }
.ev-dialog::backdrop { background: rgba(43, 15, 58, .55); backdrop-filter: blur(4px); }
.ev-card-row { cursor: pointer; }

/* ---------- modal (sign-in popup, viewer) ---------- */
.modal { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(32, 10, 44, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--cream); border-radius: 30px; padding: 34px clamp(20px, 4vw, 36px) 28px;
  box-shadow: 0 40px 90px -30px rgba(43,15,58,.6); opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .35s, transform .5s var(--spring); }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--plum); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--spring), background .2s; z-index: 2; }
.modal-close:hover { background: var(--lime); transform: rotate(90deg); }
.modal-head { text-align: center; margin-bottom: 22px; }
.modal-head h3 { font-size: 1.7rem; margin: 12px 0 4px; }
.modal-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.modal-mark { width: 58px; height: 58px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--orchid), var(--violet)); box-shadow: 0 12px 30px -10px rgba(184,50,127,.6); animation: pop .6s var(--spring); }
.modal-mark .i { width: 26px; height: 26px; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 18px; background: var(--mist); margin-bottom: 22px; }
.auth-tabs button { position: relative; z-index: 1; border: 0; background: transparent; padding: 12px; font: 700 1rem var(--body); color: var(--muted); cursor: pointer; border-radius: 14px; transition: color .3s; }
.auth-tabs button[aria-selected="true"] { color: var(--plum); }
.auth-tabs-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--spring); }
.auth-tabs[data-on="register"] .auth-tabs-pill { transform: translateX(100%); }
.auth-tabs[data-on="forgot"] .auth-tabs-pill { opacity: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover { color: var(--orchid); background: var(--mist); }
.form-aux { display: flex; justify-content: flex-end; margin-top: -6px; }
.text-btn { border: 0; background: none; padding: 0; font: 700 .92rem var(--body); color: var(--orchid); cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-btn:hover { color: var(--violet); }
.btn-block { width: 100%; justify-content: center; padding: 1.05em 1.5em; }
.auth-foot { text-align: center; color: var(--muted); font-size: .92rem; margin: 2px 0 0; }
body.no-scroll { overflow: hidden; }
.viewer-card { width: min(1100px, 100%); height: calc(100vh - 32px); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.viewer-head { display: flex; align-items: center; gap: 10px; padding: 14px 70px 14px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.viewer-head b { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-head .modal-close { top: 9px; }
.viewer-body { flex: 1; background: #3a2a44; }
.viewer-body iframe, .viewer-body img { width: 100%; height: 100%; border: 0; object-fit: contain; display: block; }
.viewer-body .empty { margin: 40px; background: #fff; }
@media (max-width: 560px) { .viewer-head .btn span, .viewer-head #viewerOpen { display: none; } }

/* ---------- document library ---------- */
.gate { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.gate::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, #F4B6DA, transparent 70%); opacity: .6; pointer-events: none; }
.gate h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 16ch; }
.gate-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--lime); color: var(--plum); margin-bottom: 20px; }
.gate-ic .i { width: 28px; height: 28px; }
.gate-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.gate-steps li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--cream); transition: transform .4s var(--spring); }
.gate-steps li:hover { transform: translateX(6px); }
.gate-steps span { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: var(--lime); font: 800 1rem var(--head); }
.gate-steps small { display: block; color: var(--muted); }
@media (max-width: 860px) { .gate { grid-template-columns: 1fr; } }
.docs-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 34px; align-items: start; }
.docs-layout > * { min-width: 0; }
.docs-side { position: sticky; top: 100px; }
.kicker { font: 800 .74rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 6px 0 16px 4px; }
.docs-cats { display: grid; gap: 6px; }
.docs-account { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.docs-account .avatar { width: 40px; height: 40px; font-size: 1rem; }
.docs-account small { display: block; color: var(--muted); font-size: .78rem; }
.docs-account b { display: block; font-size: .95rem; }
.docs-account-links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; }
.docs-account-links a { font-weight: 700; color: var(--orchid); }
.docs-account-links .text-btn { font-size: .88rem; }
.docs-cats button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; padding: 13px 14px; border-radius: 16px; background: transparent; color: var(--plum); font: 700 .98rem var(--body); cursor: pointer; transition: background .25s, color .25s, transform .3s var(--spring); }
.docs-cats button:hover { background: #fff; transform: translateX(4px); }
.docs-cats button .ci { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--mist); color: var(--orchid); }
.docs-cats button .nm { flex: 1; }
.docs-cats button .ct { flex: none; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--mist); font-size: .8rem; }
.docs-cats button[aria-current="true"] { background: var(--plum); color: #fff; box-shadow: var(--shadow-sm); }
.docs-cats button[aria-current="true"] .ci { background: rgba(255,255,255,.12); color: var(--lime); }
.docs-cats button[aria-current="true"] .ct { background: rgba(255,255,255,.16); }
.docs-search { position: relative; margin-bottom: 18px; }
.docs-search .i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.docs-search input { width: 100%; padding: 18px 20px 18px 54px; border-radius: 20px; border: 0; background: #fff; font: inherit; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s; }
.docs-search input:focus { outline: none; box-shadow: 0 0 0 2px var(--violet), 0 0 0 7px rgba(139,79,209,.14); }
.docs-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.docs-subtabs button { border: 0; padding: .7em 1.15em; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 700 .92rem var(--body); color: var(--plum); cursor: pointer; transition: all .25s var(--ease); }
.docs-subtabs button:hover { transform: translateY(-2px); }
.docs-subtabs button.active { background: var(--orchid); color: #fff; box-shadow: 0 8px 20px -8px rgba(184,50,127,.6); }
.docs-count { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.docs-list { display: grid; gap: 12px; }
.doc { display: flex; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 22px; background: #fff; text-decoration: none; color: inherit; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--spring), box-shadow .35s; animation: rise-in .6s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.doc:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.doc .ext { position: relative; flex: none; width: 58px; height: 74px; border-radius: 10px 18px 10px 10px; display: grid; place-items: center; font: 800 .74rem var(--head); text-transform: uppercase; background: var(--mist); color: var(--orchid); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.doc .ext.thumb { background: #fff; }
.doc .ext img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc .ext em { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0; text-align: center; font-style: normal; font-size: .64rem; color: #fff; background: var(--orchid); }
.doc .ext.pdf { color: #B4232F; background: #FDE3E6; } .doc .ext.xlsx, .doc .ext.xls, .doc .ext.csv { background: #E3F5DA; color: #2B6A12; } .doc .ext.docx, .doc .ext.doc { background: #DDE9FB; color: #1E4FA3; }
.doc-meta { min-width: 0; flex: 1; }
.doc-meta b { display: block; font: 700 1.08rem/1.3 var(--head); letter-spacing: -.01em; margin-bottom: 4px; }
.doc-meta span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.doc .arrow { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--plum); transition: background .25s, transform .35s var(--spring); }
.doc:hover .arrow { background: var(--lime); transform: translateX(4px); }
.docs-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 22px; }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 18px; }
  .docs-side { position: static; }
  .docs-cats { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .docs-cats button { flex: none; width: auto; }
  .docs-cats button .ci { display: none; }
}
@media (max-width: 560px) { .doc { gap: 12px; padding: 14px; } .doc .arrow { display: none; } }

/* ---------- footer ---------- */
.site-footer { background: var(--plum); color: rgba(255,255,255,.75); padding: 90px 0 30px; margin-top: 40px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s, padding .3s var(--ease); }
.site-footer a:hover { color: var(--lime); padding-left: 4px; }
.foot-big { font: 800 clamp(3rem, 12vw, 10rem)/.85 var(--head); letter-spacing: -.05em; color: rgba(255,255,255,.06); margin-top: 60px; white-space: nowrap; user-select: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.site-footer .brand { color: #fff; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--lime); color: var(--plum); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transform: translateY(100px) rotate(-90deg); transition: transform .5s var(--spring); }
.to-top.show { transform: none; }
.to-top:hover { transform: translateY(-4px) scale(1.06); }

/* ---------- reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.88); }
[data-reveal].in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--base, 0ms)); }
.split-words.in .w > span { transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero { padding-top: 130px; }
  .hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .stack-img { max-width: 520px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sticker { width: 100px; height: 100px; font-size: .66rem; left: 0; }
  .page-hero-img { aspect-ratio: 4/3; }
  .nav { padding-left: 14px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-words .w > span { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .to-top, .loader { display: none !important; } }
