/* Kinetic CRE Network — brand tokens (orange/teal/slate from the original site) */
:root {
  --orange: #ff9e1b;
  --orange-deep: #f08a00;
  --teal: #00939d;
  --teal-deep: #005670;
  --deep: #005670;          /* dark surfaces: brand deep teal (replaces navy) */
  --lime: #c6d83b;          /* Franklin Street lime: only on dark or as a fill with dark text */
  --ink: #20303c;
  --bg: #f5f7f8;
  --paper: #ffffff;
  --line: #e3e7ea;
  --muted: #6b7680;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 28, 38, .06), 0 8px 24px rgba(15, 28, 38, .08);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.empty { color: var(--muted); text-align: center; padding: 32px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .15s, background .2s, box-shadow .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: var(--ink); box-shadow: 0 6px 20px rgba(255, 158, 27, .35); }
.btn-orange:hover { background: #ffb040; box-shadow: 0 8px 26px rgba(255, 158, 27, .5); }
.btn-ghost { background: rgba(32, 48, 60, .06); }
.btn-ghost:hover { background: rgba(32, 48, 60, .12); }
.btn-line { border: 1.5px solid currentColor; }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.link { font-weight: 600; color: var(--teal-deep); }
.danger { color: #c0392b !important; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow .25s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15, 28, 38, .06); }
.nav-inner { width: min(1180px, 100% - 32px); margin: auto; height: 72px; display: flex; align-items: center; gap: 24px; }
.logo img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: background .2s; }
.nav-links a:hover { background: rgba(32, 48, 60, .07); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--deep); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, top .25s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.open span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { display: grid; gap: 4px; padding: 8px 16px 20px; }
.mobile-menu a:not(.btn) { font-size: 22px; font-weight: 600; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; height: 52px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 520px at 85% 10%, rgba(198, 216, 59, .16), transparent 60%), radial-gradient(1100px 600px at 15% 30%, #0a8f98 0%, transparent 60%), linear-gradient(135deg, #007b85 0%, var(--teal-deep) 75%); padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 9vw, 110px); }
.hero-inner { position: relative; width: min(1180px, 100% - 32px); margin: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); margin: 0 0 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198, 216, 59, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 216, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 216, 59, 0); } }
.hero h1 { font-size: clamp(42px, 7.4vw, 96px); font-weight: 700; max-width: 14ch; letter-spacing: -.035em; }
.hero h1 em { font-family: var(--serif); font-weight: 400; color: var(--orange); letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; opacity: .82; margin: 24px 0 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: clamp(24px, 5vw, 64px); margin: 64px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.stats div { margin: 0; }
.stats dt { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; opacity: .65; }

/* animated chevrons — "energy in motion" */
.chevrons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.chevrons span { position: absolute; top: 50%; right: -10%; width: clamp(180px, 28vw, 380px); aspect-ratio: 1; border-top: clamp(22px, 3vw, 44px) solid; border-right: clamp(22px, 3vw, 44px) solid; transform: translateY(-50%) rotate(45deg); color: rgba(0, 147, 157, .22); animation: chev 9s linear infinite; animation-delay: calc(var(--i) * -1.3s); }
.chevrons span:nth-child(3n) { color: rgba(255, 158, 27, .22); }
.hero .chevrons span, .join .chevrons span, .login .chevrons span, .me-card .chevrons span { color: rgba(255, 255, 255, .13); }
.hero .chevrons span:nth-child(3n), .join .chevrons span:nth-child(3n), .login .chevrons span:nth-child(3n), .me-card .chevrons span:nth-child(3n) { color: rgba(198, 216, 59, .32); }
.hero .chevrons { opacity: .38; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, #000 65%); mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, #000 65%); }
.hero .chevrons span, .join .chevrons span { animation-duration: 24s; animation-delay: calc(var(--i) * -3.4s); }
@keyframes chev { from { right: 110%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { right: -40%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chevrons span, .marquee-track, .dot { animation: none !important; } .chevrons span { right: calc(var(--i) * 14% - 10%); } }

/* ---------- marquee ---------- */
.marquee { background: var(--lime); color: var(--ink); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marq 40s linear infinite; font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .06em; }
.marquee-track i { font-style: normal; opacity: .5; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--teal); margin: 0 0 14px; }
.kicker.light { color: var(--lime); }
.section h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.sec-sub { max-width: 42ch; color: var(--muted); margin: 0; font-size: 17px; }

.about-intro { max-width: 820px; }
.about-lede { margin: 20px 0 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--ink); }
.about-lede span { color: var(--teal-deep); font-family: var(--serif); font-style: italic; font-size: 1.15em; }
.pillars { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; margin: 48px 0 0; padding: 12px; border-radius: 28px; color: #fff; background: radial-gradient(700px 400px at 85% 0%, rgba(198, 216, 59, .18), transparent 60%), linear-gradient(135deg, #007b85, var(--teal-deep)); }
.pillar { position: relative; overflow: hidden; padding: 36px 32px 40px; border-radius: 20px; transition: background .35s, transform .35s; }
.pillar:hover { background: rgba(255, 255, 255, .06); transform: translateY(-4px); }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.p-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--orange); color: var(--ink); box-shadow: 0 10px 30px rgba(255, 158, 27, .35); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.p-icon svg { width: 26px; height: 26px; stroke-width: 2; }
.pillar:hover .p-icon { transform: rotate(-8deg) scale(1.08); }
.pillar:nth-of-type(2) .p-icon { background: #fff; color: var(--teal-deep); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.pillar:nth-of-type(3) .p-icon { background: var(--lime); color: var(--ink); box-shadow: 0 10px 30px rgba(198, 216, 59, .35); }
.pillar h3 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; }
.p-verb { margin: 4px 0 16px; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.1; color: var(--orange); }
.p-copy { margin: 0; color: rgba(255, 255, 255, .72); font-size: 16px; }
.p-bar { position: absolute; left: 32px; right: 32px; bottom: 22px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.p-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--orange), var(--lime)); transform: scaleX(.18); transform-origin: left; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.pillar:hover .p-bar::after { transform: scaleX(1); }
.p-arrow { align-self: center; display: flex; padding: 0 4px; }
.p-arrow i { width: 14px; height: 14px; margin-left: -4px; border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); transform: rotate(45deg); animation: nudge 1.6s ease-in-out infinite; }
.p-arrow i:last-child { border-color: var(--lime); opacity: .8; animation-delay: .15s; }
@keyframes nudge { 50% { translate: 4px 0; } }
@media (prefers-reduced-motion: reduce) { .p-arrow i { animation: none; } }

.membership { margin-top: clamp(72px, 9vw, 112px); }
.mem-head { display: flex; flex-direction: column; margin-bottom: 28px; }
.mem-head h3 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.mem-head .serif { color: var(--teal-deep); }
.criteria { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 28px 28px 0 0; box-shadow: var(--shadow); overflow: hidden; }
.crit-card { position: relative; padding: 36px 32px 40px; }
.crit-card + .crit-card { border-left: 1px solid var(--line); }
.crit-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tone); }
.crit-orange { --tone: var(--orange); --tone-ink: var(--deep); }
.crit-teal { --tone: var(--teal); --tone-ink: #fff; }
.crit-lime { --tone: var(--lime); --tone-ink: var(--ink); }
.c-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tone); color: var(--tone-ink); margin-bottom: 24px; }
.c-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.crit-card .kicker { color: var(--muted); margin-bottom: 6px; font-size: 12px; }
.crit-card h4 { margin: 0 0 20px; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: #3d4b56; }
.checks b { color: var(--ink); }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-top: 2.5px solid var(--tone); border-right: 2.5px solid var(--tone); transform: rotate(45deg); }
.crit-lime .checks li::before { border-color: var(--teal); }
.mem-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 32px; border-radius: 0 0 28px 28px; background: var(--deep); color: #fff; }
.mem-cta p { margin: 0; font-size: 17px; opacity: .9; }
.mem-cta b { color: var(--lime); }

/* members */
.members { background: var(--paper); }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.member { display: block; }
.m-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #eee; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(1.03); transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .5s; }
.m-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 86, 112, .55)); opacity: 0; transition: opacity .3s; }
.member:hover .m-photo img { transform: scale(1.06); filter: grayscale(0) contrast(1.02); }
.member:hover .m-photo::after { opacity: 1; }
.li-badge { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 10px; background: #0a66c2; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; transform: translateY(8px); opacity: 0; transition: .3s; }
.member:hover .li-badge { transform: none; opacity: 1; }
.member h3 { font-size: 18px; margin: 14px 0 2px; font-weight: 600; }
.m-firm { margin: 0; font-weight: 500; color: var(--teal-deep); font-size: 15px; }
.m-city { margin: 0; color: var(--muted); font-size: 14px; }

/* events */
.events { background: radial-gradient(800px 400px at 90% 0%, rgba(198, 216, 59, .14), transparent 60%), linear-gradient(160deg, #006670, var(--teal-deep)); color: #fff; }
.events .sec-sub { color: rgba(255, 255, 255, .78); }
.event-list { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 26px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); transition: background .25s, transform .25s; }
.event:hover { background: rgba(255, 255, 255, .09); transform: translateX(4px); }
.event.signature { background: linear-gradient(110deg, rgba(255, 158, 27, .24), rgba(198, 216, 59, .16)); border-color: rgba(198, 216, 59, .55); }
.e-date { width: 76px; height: 82px; border-radius: 16px; background: var(--orange); color: var(--ink); display: grid; place-content: center; text-align: center; line-height: 1; }
.e-date span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.e-date b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.e-type { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.event h3 { font-size: 24px; }
.e-meta { margin: 6px 0 0; opacity: .7; font-size: 15px; }
.e-blurb { margin: 8px 0 0; opacity: .85; max-width: 60ch; }
.e-actions { display: flex; gap: 10px; }

.event.teaser { grid-template-columns: auto 1fr auto; }
.e-lock { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; white-space: nowrap; }
.e-lock svg { width: 16px; height: 16px; stroke: var(--lime); }
.events-cta { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 40, 50, .25); }
.events-cta h3 { font-size: clamp(22px, 2.4vw, 28px); }
.events-cta p { margin: 6px 0 0; max-width: 56ch; color: var(--muted); }
.events-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.events-cta .btn-line { color: var(--teal-deep); border-color: var(--teal-deep); }
.events-cta .btn-line:hover { background: var(--teal-deep); color: #fff; }

/* gallery */
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry .tile { break-inside: avoid; margin-bottom: 16px; display: block; width: 100%; position: relative; border-radius: var(--radius); overflow: hidden; text-align: left; padding: 0; background: #ddd; }
.masonry .tile img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.masonry .tile:hover img { transform: scale(1.04); }
.masonry .tile > span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 28, 38, .7); color: #fff; font-size: 13px; font-weight: 500; backdrop-filter: blur(6px); }
.tile-cta { aspect-ratio: 4/3; background: repeating-linear-gradient(135deg, var(--bg) 0 14px, #eaeef1 14px 28px) !important; border: 2px dashed var(--orange); display: grid !important; place-content: center; text-align: center !important; }
.tile-cta b { font-size: 56px; color: var(--orange-deep); line-height: 1; }
.tile-cta span { position: static !important; background: none !important; color: var(--ink) !important; font-weight: 600 !important; }

/* homepage photo carousel (admin-approved member photos + originals) */
.carousel { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); column-gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--radius); outline: none; }
.car-track::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; padding: 0; background: #dfe5e8; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.slide:hover img { transform: scale(1.04); }
.slide span { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: rgba(0, 86, 112, .78); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(6px); }
.car-btn { position: absolute; top: calc(50% - 24px); width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1; box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .2s, background .2s; }
.car-btn:hover { background: var(--lime); transform: scale(1.06); }
.car-prev { left: -18px; } .car-next { right: -18px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.car-dots button { width: 8px; height: 8px; border-radius: 999px; background: #cdd4d9; transition: width .3s, background .3s; }
.car-dots button.on { width: 28px; background: var(--teal-deep); }

/* testimonials */
.love { background: var(--paper); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.quote { margin: 0; padding: 36px 32px 32px; border-radius: var(--radius); background: var(--bg); position: relative; display: flex; flex-direction: column; }
.quote:nth-child(2) { background: var(--teal-deep); color: #fff; }
.quote:nth-child(2) .q-mark { color: var(--lime); }
.q-mark { font-family: var(--serif); font-size: 90px; line-height: .6; color: var(--orange); }
.quote blockquote { margin: 18px 0 28px; font-size: 20px; line-height: 1.45; font-weight: 500; flex: 1; }
.quote figcaption b { display: block; }
.quote figcaption span { font-size: 14px; opacity: .7; }

/* join */
.join { background: linear-gradient(135deg, #007b85, var(--teal-deep)); color: #fff; overflow: hidden; }
.join-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.join h2 .serif { color: var(--orange); }
.card-form { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 16px; font-weight: 400; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 147, 157, .15); }
textarea { resize: vertical; }

/* footer */
.footer { background: var(--deep); color: rgba(255, 255, 255, .7); padding: 36px 0 calc(36px + var(--safe-b)); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-inner p { margin: 0; }
.foot-inner a { color: #fff; font-weight: 600; }
.logo-foot img { height: 44px; filter: brightness(0) invert(1); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 20, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: 12px; }
.lightbox figcaption { color: #fff; opacity: .8; }
.lb-nav, .lb-close { color: #fff; font-size: 40px; width: 56px; height: 56px; border-radius: 50%; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .1); }
.lb-close { position: absolute; top: 12px; right: 12px; font-size: 22px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--deep); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: .3s; z-index: 300; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   LOGIN
   ========================================================= */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; background: linear-gradient(135deg, #007b85, var(--teal-deep)); }
.login-card { position: relative; width: min(420px, 100%); background: var(--paper); border-radius: 28px; padding: 36px 28px; box-shadow: 0 40px 80px rgba(0, 0, 0, .3); }
.login-card .logo img { height: 46px; margin-bottom: 28px; }
.login-card h1 { font-size: 36px; }
.login-card p.muted { margin: 8px 0 24px; }
.login-card form { display: grid; gap: 14px; }
.demo-note { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.demo-note code { background: var(--bg); padding: 2px 8px; border-radius: 6px; font-weight: 600; color: var(--ink); }
.back { display: block; text-align: center; margin-top: 18px; font-weight: 600; color: var(--teal-deep); }

/* =========================================================
   PORTAL — app shell
   ========================================================= */
body.in-portal { background: #f1f3f5; }
.portal { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 24px 16px; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.side .logo img { height: 38px; margin-left: 8px; }
.side-top { display: flex; align-items: center; justify-content: space-between; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s; }
.bell:hover { background: var(--bg); }
.bell-badge { position: absolute; top: -1px; right: -3px; min-width: 15px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e0342b; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.notif-panel { position: fixed; z-index: 120; top: 16px; left: 248px; width: min(380px, calc(100vw - 16px)); max-height: min(560px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(15, 28, 38, .18); overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notif-head .link { font-size: 14px; }
.notif-list { overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.notif:hover { background: var(--bg); }
.notif.unread { background: #fff7ea; }
.notif.unread:hover { background: #ffefd4; }
.notif p { margin: 0; font-size: 14px; line-height: 1.4; }
.notif-snip { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-ago { font-size: 12px !important; color: var(--muted); margin-top: 2px !important; }
.notif-list .empty { padding: 28px 18px; font-size: 14px; }
.side nav { display: grid; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 600; color: var(--muted); transition: .2s; }
.side nav a:hover { background: var(--bg); color: var(--ink); }
.side nav a.on { background: var(--deep); color: #fff; }
.side nav a.on svg { stroke: var(--lime); }
.side-back { margin-top: auto; padding: 12px 14px; font-weight: 600; color: var(--teal-deep); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.p-top, .tabbar { display: none; }
.p-main { width: min(720px, 100% - 32px); margin: 0 auto; padding: 32px 0 120px; }

.av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--teal); }
.av-txt { display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); }
.av.xs { width: 24px; height: 24px; font-size: 10px; }
.av.sm { width: 34px; height: 34px; font-size: 12px; }
.av.xl { width: 96px; height: 96px; font-size: 32px; border: 4px solid #fff; }

/* forum */
.feed-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; transition: .2s; }
.chip.on, .chip.radio:has(input:checked) { background: var(--deep); color: #fff; border-color: var(--ink); }
.chip.radio input { display: none; }
.seg { display: inline-flex; align-self: flex-start; background: var(--paper); border: 1px solid var(--line); padding: 3px; border-radius: 999px; }
.seg button { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--orange); color: var(--ink); }

.composer-trigger { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); text-align: left; margin-bottom: 14px; transition: border-color .2s; }
.composer-trigger:hover { border-color: var(--teal); }

.posts { display: grid; gap: 10px; }
.post { display: grid; grid-template-columns: 44px 1fr; background: var(--paper); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.post:hover { border-color: #cdd4d9; box-shadow: var(--shadow); }
.votes { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 0; background: #f7f9fa; }
.votes button { width: 32px; height: 28px; border-radius: 8px; font-size: 13px; color: #a1abb3; transition: .15s; }
.votes button:hover { background: #e8edf0; }
.votes .up.on { color: var(--orange-deep); }
.votes .down.on { color: var(--teal); }
.votes b { font-size: 14px; }
.post-link { display: block; padding: 14px 16px 12px; min-width: 0; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.post-meta b { color: var(--ink); font-weight: 600; }
.flair { padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; background: #eef6f6; color: var(--teal-deep); }
.f-deals { background: #fff1dc; color: #9a5700; }
.f-intel { background: #e5f4f5; color: var(--teal-deep); }
.f-events { background: #e8ecf8; color: #33408a; }
.f-offtopic { background: #fbe8f0; color: #97325e; }
.ago::before { content: "· "; }
.post h3 { font-size: 18px; margin: 8px 0 4px; font-weight: 600; letter-spacing: -.01em; }
.post-body { margin: 0; color: #3d4b56; white-space: pre-wrap; overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-img { margin-top: 10px; border-radius: 12px; max-height: 420px; width: 100%; object-fit: cover; cursor: zoom-in; }
.post-foot { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post-full { margin-top: 12px; }
.post-h { font-size: 26px; margin: 10px 0 8px; }
.post-full .danger { margin-top: 14px; font-size: 14px; font-weight: 600; }
.back-link { font-weight: 600; color: var(--teal-deep); }
.replies-h { font-size: 16px; margin: 24px 0 12px; }
.comments { display: grid; gap: 10px; }
.comment { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.comment p { margin: 0; overflow-wrap: anywhere; }
.c-meta { font-size: 13px; color: var(--muted); }
.c-meta b { color: var(--ink); }
.reply-bar { position: sticky; bottom: 16px; margin-top: 16px; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 8px; box-shadow: var(--shadow); }
.reply-bar input { border: 0 !important; box-shadow: none !important; padding: 8px 4px !important; background: transparent !important; }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--ink); flex: none; font-size: 16px; }

.fab { display: none; }

/* composer sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 150; background: rgba(15, 28, 38, 0); display: grid; place-items: center; transition: background .25s; padding: 16px; }
.sheet-wrap.open { background: rgba(15, 28, 38, .5); }
.sheet { width: min(600px, 100%); background: var(--paper); border-radius: 24px; padding: 16px 18px 20px; display: grid; gap: 14px; transform: translateY(20px); opacity: 0; transition: .25s cubic-bezier(.2, .8, .2, 1); max-height: 90dvh; overflow-y: auto; }
.sheet-wrap.open .sheet { transform: none; opacity: 1; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.wrap-chips { flex-wrap: wrap; margin: 0; padding: 0; }
.title-in { font-size: 20px !important; font-weight: 600 !important; }
.attach { display: flex; align-items: center; gap: 12px; }
.attach .btn { font-weight: 600; }
.attach-preview { height: 56px; width: 56px; object-fit: cover; border-radius: 10px; }

/* portal events */
.p-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(135deg, #007b85, var(--teal-deep)); color: #fff; border-radius: 22px; padding: 24px; margin-bottom: 16px; }
.p-hero h2 { font-size: 28px; }
.p-hero p:last-child { margin: 6px 0 0; opacity: .8; font-size: 15px; }
.ring { --p: 0; width: 86px; height: 86px; flex: none; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--p) * 360deg), rgba(255, 255, 255, .15) 0); display: grid; place-items: center; }
.ring b { width: 68px; height: 68px; border-radius: 50%; background: var(--deep); display: grid; place-items: center; font-size: 18px; }
.p-events { display: grid; gap: 12px; }
.p-event { display: grid; grid-template-columns: auto 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.p-event.signature { border: 2px solid var(--orange); }
.p-event h3 { font-size: 20px; }
.p-event .e-meta { opacity: 1; color: var(--muted); font-size: 14px; }
.p-event .e-type { color: var(--orange-deep); }
.attendees { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.stack { display: flex; }
.stack .av { border: 2px solid #fff; margin-left: -6px; }
.stack .av:first-child { margin-left: 0; }
.rsvp { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.rsvp button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; transition: .15s; }
.rsvp button:hover { border-color: var(--ink); }
.rsvp button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rsvp button.on.go { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.rsvp button.on.no { background: #eee; color: var(--muted); border-color: #eee; }
.rsvp .ics { padding: 0 12px; margin-left: auto; }

/* photos */
.upload { margin-bottom: 28px; display: grid; gap: 14px; }
.drop { display: grid; place-items: center; text-align: center; gap: 4px; padding: 36px 16px; border-radius: 22px; border: 2px dashed var(--orange); background: #fffaf0; cursor: pointer; transition: .2s; }
.drop:hover, .drop.hover { background: #fff1d6; }
.drop b { font-size: 20px; }
.drop span { color: var(--muted); font-weight: 400; }
.upload-opts { display: grid; gap: 14px; background: var(--paper); padding: 16px; border-radius: 18px; border: 1px solid var(--line); }
.upload-opts[hidden] { display: none; }
.previews { display: flex; gap: 8px; overflow-x: auto; }
.previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.toggle input { display: none; }
.toggle span { width: 44px; height: 26px; border-radius: 999px; background: #d2d8dd; position: relative; transition: .2s; flex: none; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle input:checked + span { background: var(--teal); }
.toggle input:checked + span::after { left: 21px; }
.h-sm { font-size: 20px; margin-bottom: 14px; }
.masonry.small { columns: 3 160px; column-gap: 10px; }
.masonry.small .tile { margin-bottom: 10px; border-radius: 14px; }
.masonry.small .tile > span { font-size: 11px; left: 8px; bottom: 8px; padding: 4px 10px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-btn { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(15, 28, 38, .7); color: #fff; font-size: 13px; }

/* admin photo review */
.review { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.review-head { display: flex; justify-content: space-between; align-items: end; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.review-head .kicker { margin-bottom: 2px; }
.review-head .h-sm { margin: 0; }
.review-head p.muted { margin: 0; font-size: 14px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.review-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); }
.review-card .tile-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rc-body { padding: 10px 12px 12px; }
.rc-who { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.rc-meta { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.rc-actions { display: flex; gap: 6px; }
.rc-actions .btn { flex: 1; }
.rc-actions .btn-line { color: var(--ink); border-color: var(--line); }
.h-xs { font-size: 16px; margin: 20px 0 10px; }
.unfeature { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #b3261e; font-size: 12px; font-weight: 600; }
.masonry.small .tile > .st { font-weight: 600; }
.st-pending { background: rgba(32, 48, 60, .78) !important; }
.st-approved { background: var(--lime) !important; color: var(--ink) !important; }
.st-declined { background: rgba(179, 38, 30, .85) !important; }
.tab-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.admin-pill { margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; }

/* documents */
.docs-hero { flex-wrap: wrap; }
.docs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-folders { margin-bottom: 14px; }
.chip span { font-size: 12px; opacity: .6; margin-left: 2px; }
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.doc { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 14px; transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.d-type { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: #eef1f3; color: var(--ink); }
.t-pdf { background: #fde8e6; color: #b3261e; }
.t-doc, .t-docx, .t-ms { background: #e3eefc; color: #1b5bb8; }
.t-xls, .t-xlsx, .t-csv { background: #e2f4ea; color: #1d7a45; }
.t-ppt, .t-pptx, .t-key { background: #ffeede; color: #b35300; }
.t-png, .t-jpg, .t-jpeg, .t-gif, .t-webp { background: #e5f4f5; color: var(--teal-deep); }
.t-g { background: #e8f0fe; color: #1a73e8; font-size: 16px; }
.t-db { background: #e6effd; color: #0061fe; }
.d-main { flex: 1; min-width: 0; }
.d-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-title:hover { color: var(--teal-deep); }
.d-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-meta .live { display: block; color: #1d7a45; font-weight: 600; font-size: 12px; }
.d-open, .d-del { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.d-open { background: var(--bg); color: var(--teal-deep); }
.d-open:hover { background: var(--orange); color: var(--ink); }
.d-del { color: var(--muted); font-size: 13px; }
.d-del:hover { background: #fde8e6; color: #b3261e; }
.d-access { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.d-access svg { width: 14px; height: 14px; }
.d-access.private { color: var(--teal-deep); }
.d-access .stack .av { width: 18px; height: 18px; border-width: 1.5px; }
.d-share { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--teal-deep); }
.d-share svg { width: 18px; height: 18px; }
.d-share:hover { background: var(--bg); }
.doc.focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 158, 27, .2); }
.doc-notice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 14px; border-radius: 14px; background: #fff7ea; border: 1px solid #ffd9a0; font-size: 14px; }
.doc-notice svg { width: 20px; height: 20px; color: var(--orange-deep); }
.share-sheet { gap: 12px; }
.share-title { margin: -4px 0 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.share-seg { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
.share-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px; }
.share-seg svg { width: 16px; height: 16px; }
.share-seg button.on { background: var(--teal-deep); color: #fff; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; align-items: center; }
.picked .chip { height: 32px; padding: 0 6px 0 12px; }
.picked .chip button { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; }
.picked .chip button:hover { background: rgba(255, 255, 255, .2); }
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; }
.pick { display: flex !important; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 400; cursor: pointer; }
.pick:last-child { border-bottom: 0; }
.pick:hover { background: var(--bg); }
.pick input { display: none; }
.pick img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.pick span { flex: 1; display: grid; line-height: 1.25; }
.pick small { color: var(--muted); font-size: 12px; }
.pick i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; transition: .15s; }
.pick input:checked ~ i { background: var(--teal-deep); border-color: var(--teal-deep); box-shadow: inset 0 0 0 3px #fff; }
.share-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.share-who .d-access { margin: 0; font-size: 14px; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; min-width: 0; font-size: 13px !important; color: var(--muted); background: var(--bg) !important; }
.link-row .btn-line { color: var(--teal-deep); border-color: var(--teal-deep); }
.drop.small { padding: 22px 16px; }
.drop.small b { font-size: 17px; }
.hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }

/* people */
.search { margin-bottom: 14px; border-radius: 999px !important; padding-left: 20px !important; }
.people { display: grid; gap: 8px; }
.person { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.person div { flex: 1; min-width: 0; display: grid; }
.person span { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .li { width: 40px; height: 40px; border-radius: 12px; background: #0a66c2; color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; }

/* me */
.me-card { position: relative; overflow: hidden; text-align: center; color: #fff; background: linear-gradient(135deg, #007b85, var(--teal-deep)); border-radius: 24px; padding: 36px 20px 24px; display: grid; justify-items: center; }
.me-card > *:not(.chevrons) { position: relative; }
.me-card h2 { font-size: 28px; margin-top: 14px; }
.me-card p { margin: 4px 0 0; opacity: .75; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 360px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }
.me-stats b { display: block; font-size: 26px; }
.me-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.me-list { margin-top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.me-list > * { display: flex; justify-content: space-between; width: 100%; padding: 16px 18px; font-weight: 600; border-bottom: 1px solid var(--line); text-align: left; }
.me-list > *:last-child { border-bottom: 0; }
.me-list span { color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: block; }
  .join-grid { grid-template-columns: 1fr; }
  .criteria, .quotes { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .car-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .crit-card + .crit-card { border-left: 0; border-top: 1px solid var(--line); }
  .crit-card { padding: 28px 24px 32px; }
  .mem-cta { padding: 20px 24px; }
  .mem-cta .btn { width: 100%; }
  .pillars { grid-template-columns: 1fr; padding: 8px; }
  .pillar { padding: 28px 24px 36px; }
  .p-head { margin-bottom: 24px; }
  .p-bar { left: 24px; right: 24px; }
  .p-arrow { justify-self: center; padding: 0; transform: rotate(90deg); }
  .event { grid-template-columns: auto 1fr; }
  .e-actions { grid-column: 1 / -1; }
}
@media (min-width: 981px) { .mobile-menu { display: none !important; } }

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .nav-inner { height: 64px; }
  .logo img { height: 36px; }
  .nav-cta .btn-ghost { height: 40px; padding: 0 14px; font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .member h3 { font-size: 16px; }
  .m-firm { font-size: 14px; } .m-city { font-size: 13px; }
  .li-badge { opacity: 1; transform: none; width: 28px; height: 28px; font-size: 13px; right: 8px; bottom: 8px; }
  .event { padding: 20px; gap: 16px; }
  .e-date { width: 62px; height: 68px; } .e-date b { font-size: 28px; }
  .event h3 { font-size: 20px; }
  .e-actions .btn { flex: 1; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry .tile { margin-bottom: 10px; border-radius: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .event.teaser { grid-template-columns: auto 1fr; }
  .e-lock { grid-column: 1 / -1; justify-self: start; }
  .events-cta { padding: 22px 20px; }
  .events-cta-btns, .events-cta-btns .btn { width: 100%; }
  .car-track { grid-auto-columns: 82%; column-gap: 12px; }
  .car-btn { display: none; }
  .card-form { padding: 20px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 20px; } .lb-prev { left: 20px; } .lb-next { right: 20px; }
}

/* portal goes app-like on phones */
@media (max-width: 860px) {
  .portal { display: block; }
  .side { display: none; }
  .p-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; height: 58px; padding: 0 16px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .logo-sm img { height: 30px; }
  .p-title { font-weight: 700; font-size: 17px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); }
  .p-me { margin-left: auto; display: flex; align-items: center; gap: 6px; }
  .notif-panel { top: 64px; left: 8px; right: 8px; width: auto; }
  .p-main { padding: 16px 0 calc(110px + var(--safe-b)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a.on { color: var(--ink); }
  .tabbar a { position: relative; }
  .tabbar .tab-count { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .tabbar a.on svg { stroke: var(--orange-deep); stroke-width: 2.2; }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(84px + var(--safe-b)); width: 58px; height: 58px; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: 28px; font-weight: 500; box-shadow: 0 10px 28px rgba(255, 158, 27, .5); z-index: 55; }
  .reply-bar { bottom: calc(80px + var(--safe-b)); }
  .sheet-wrap { place-items: end stretch; padding: 0; }
  .sheet { width: 100%; border-radius: 24px 24px 0 0; transform: translateY(100%); padding-bottom: calc(20px + var(--safe-b)); }
  .p-hero h2 { font-size: 22px; }
  .ring { width: 72px; height: 72px; } .ring b { width: 56px; height: 56px; font-size: 16px; }
  .post { grid-template-columns: 40px 1fr; }
  .post-link { padding: 12px 14px 10px; }
  .toast { bottom: calc(150px + var(--safe-b)); }
}
