/* SmartTeller.co — brand layer on top of Bootstrap 5.3
   Brand colour taken from smartteller.tech (#1a73e8). */
:root {
  --st-blue: #1a73e8;
  --st-blue-600: #1559c4;
  --st-blue-700: #0f4396;
  --st-blue-50: #edf4fe;
  --st-navy: #071a36;
  --st-navy-2: #0c2549;
  --st-ink: #0b1b33;
  --st-muted: #5d6c84;
  --st-line: #e2e8f1;
  --st-soft: #f5f8fc;
  --bs-primary: #1a73e8;
  --bs-primary-rgb: 26, 115, 232;
  --bs-link-color: #1559c4;
  --bs-link-color-rgb: 21, 89, 196;
  --bs-link-hover-color: #0f4396;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: #2b3a52;
  --bs-border-color: #e2e8f1;
  --st-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .display-font { font-family: var(--st-display); color: var(--st-ink); letter-spacing: -0.02em; font-weight: 750; }
.text-white h1, .text-white h2, .text-white h3, .text-white h4 { color: #fff; }
.lead { color: var(--st-muted); }
.text-muted-st { color: var(--st-muted) !important; }
.bg-soft { background: var(--st-soft); }
.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } }

/* Buttons */
.btn { --bs-btn-font-weight: 600; border-radius: 999px; padding: .7rem 1.4rem; }
.btn-sm { padding: .45rem 1rem; }
.btn-primary { --bs-btn-bg: #1a73e8; --bs-btn-border-color: #1a73e8; --bs-btn-hover-bg: #1559c4; --bs-btn-hover-border-color: #1559c4; --bs-btn-active-bg: #0f4396; --bs-btn-active-border-color: #0f4396; --bs-btn-disabled-bg: #1a73e8; --bs-btn-disabled-border-color: #1a73e8; box-shadow: 0 8px 20px -10px rgba(26,115,232,.7); }
.btn-outline-primary { --bs-btn-color: #1559c4; --bs-btn-border-color: #1a73e8; --bs-btn-hover-bg: #1a73e8; --bs-btn-hover-border-color: #1a73e8; --bs-btn-active-bg: #1559c4; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.16); border-color: #fff; }
.btn .bi { margin-right: .35rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow .bi { transition: transform .15s; }
.link-arrow:hover .bi { transform: translateX(3px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--st-blue); margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* Navbar */
.st-nav { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: box-shadow .2s; }
.st-nav.scrolled { box-shadow: 0 6px 24px -14px rgba(11,27,51,.35); }
.st-nav .navbar-brand img { height: 40px; width: auto; }
.st-nav .brand-sub { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--st-muted); font-weight: 700; margin-top: -2px; }
.st-nav .nav-link { font-weight: 550; font-size: .93rem; color: var(--st-ink); border-radius: 8px; padding: .5rem .75rem !important; }
.st-nav .nav-link:hover, .st-nav .nav-link.active { color: var(--st-blue-600); background: var(--st-blue-50); }
.st-nav .dropdown-menu { border: 1px solid var(--st-line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(11,27,51,.3); padding: .5rem; }
.st-nav .dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-weight: 500; }
.st-nav .dropdown-item .bi { width: 1.4rem; display: inline-block; }
@media (max-width: 1199.98px) {
  .st-nav .navbar-collapse { padding: .75rem 0 1rem; max-height: calc(100vh - 80px); overflow-y: auto; }
  .st-nav .nav-link { padding: .8rem .5rem !important; border-bottom: 1px solid var(--st-line); border-radius: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #c4d3ec; padding: 96px 0 110px;
  background: radial-gradient(1100px 560px at 88% -10%, rgba(79,155,255,.38), transparent 60%), radial-gradient(800px 480px at -10% 110%, rgba(26,115,232,.35), transparent 60%), linear-gradient(160deg, var(--st-navy), var(--st-navy-2)); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.7rem); letter-spacing: -0.03em; }
.hero h1 .hl { background: linear-gradient(90deg, #7db5ff, #c6ddff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b8c8e3; font-size: 1.15rem; }
.hero .eyebrow { color: #8fbcff; }
.hero-checks { color: #90a5c8; font-size: .92rem; }
.hero-checks .bi { color: #7db5ff; }
@media (max-width: 767px) { .hero { padding: 64px 0 80px; } }
.hero-art { position: relative; border-radius: 24px; padding: 20px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px -24px rgba(0,0,0,.6); display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 104px; gap: 12px; padding-bottom: 106px; }
.tile { border-radius: 16px; padding: 14px; color: #fff; font-weight: 650; font-size: .9rem; line-height: 1.25; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; text-decoration: none; transition: transform .2s; }
.tile:hover { color: #fff; transform: translateY(-3px); }
.tile .bi { font-size: 1.6rem; }
.tile::after { content: ''; position: absolute; right: -26px; bottom: -26px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.13); }
.tile.t1 { grid-column: span 3; grid-row: span 2; } .tile.t2, .tile.t3 { grid-column: span 3; } .tile.t4 { grid-column: span 2; } .tile.t5 { grid-column: span 4; }
.float-card { position: absolute; left: 20px; bottom: 14px; background: #fff; border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); max-width: 300px; text-decoration: none; color: var(--st-ink); animation: float 6s ease-in-out infinite; }
.float-card small { color: var(--st-muted); display: block; }
.float-card strong { font-size: .9rem; line-height: 1.3; display: block; }
@media (max-width: 575px) { .hero-art { grid-auto-rows: 84px; } .tile { font-size: .8rem; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Page header */
.page-hero { position: relative; overflow: hidden; color: #b8c8e3; padding: 64px 0; background: linear-gradient(160deg, var(--st-navy), var(--st-navy-2)); }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -140px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(79,155,255,.35), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); max-width: 860px; }
.page-hero p { max-width: 700px; font-size: 1.1rem; margin: 0; }
.page-hero .eyebrow { color: #8fbcff; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #6f86ad; --bs-breadcrumb-item-active-color: #c4d3ec; font-size: .86rem; margin-bottom: 1.1rem; }
.page-hero .breadcrumb a { color: #9fc0f5; text-decoration: none; }

/* Cards */
.st-card { background: #fff; border: 1px solid var(--st-line); border-radius: 20px; padding: 28px; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.st-card.hover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11,27,51,.25); border-color: #cfe0fb; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: color-mix(in srgb, var(--c, #1a73e8) 12%, #fff); color: var(--c, #1a73e8); margin-bottom: 1.1rem; flex: none; }
.icon-box.sm { width: 42px; height: 42px; font-size: 1.15rem; border-radius: 12px; margin: 0; }

.pillar-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; }
.pillar-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.pillar-card .theme { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c); }
.pillar-card p { color: var(--st-muted); flex: 1; }
.pillar-card .link-arrow { color: var(--c); }

/* Event cards */
.event-card { border: 1px solid var(--st-line); border-radius: 20px; overflow: hidden; background: #fff; height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11,27,51,.25); }
.event-banner { position: relative; aspect-ratio: 16/8.5; display: block; overflow: hidden; background: var(--c); }
.event-banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-art { position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.28), transparent 45%), linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #071a36)); }
.banner-art::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); mask-image: linear-gradient(120deg, transparent 30%, #000); }
.banner-art .bi { position: absolute; right: 22px; bottom: 6px; font-size: 4.2rem; color: rgba(255,255,255,.88); }
.banner-art .bt { position: absolute; left: 20px; bottom: 18px; color: #fff; font-family: var(--st-display); font-weight: 750; font-size: 1.05rem; }
.event-banner .badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.event-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.event-cat { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.event-card h3 { font-size: 1.12rem; margin: .4rem 0 .7rem; }
.event-card h3 a { color: var(--st-ink); text-decoration: none; }
.event-card h3 a:hover { color: var(--st-blue-600); }
.meta { list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .9rem; color: var(--st-muted); display: grid; gap: 4px; }
.meta .bi { color: var(--st-blue); margin-right: 6px; }
.event-card p { font-size: .93rem; color: var(--st-muted); flex: 1; }

.st-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--st-ink); }
.st-badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-badge.open { background: #e6f7f0; color: #08734f; }
.st-badge.upcoming { background: var(--st-blue-50); color: var(--st-blue-700); }
.st-badge.full { background: #fff4e0; color: #9a5b00; }
.st-badge.completed { background: #eef1f5; color: #4a5872; }
.st-badge.cancelled { background: #fdecec; color: #b42323; }
.st-badge.sample { background: #fff2b8; color: #6b5300; border: 1px dashed #c9a400; }
.st-badge.format { background: rgba(7,26,54,.75); color: #fff; }

.date-badge { width: 56px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--st-line); background: #fff; flex: none; }
.date-badge .m { background: var(--st-blue); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: 3px 0; }
.date-badge .d { font-family: var(--st-display); font-size: 1.4rem; font-weight: 800; color: var(--st-ink); padding: 2px 0 4px; line-height: 1.1; }

/* Filters */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .btn { flex: none; border: 1px solid var(--st-line); background: #fff; color: var(--st-ink); font-size: .9rem; padding: .5rem 1rem; box-shadow: none; }
.filter-bar .btn.active { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--st-blue-50); color: var(--st-blue); display: grid; place-items: center; font-size: .9rem; margin-top: 1px; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 6px 14px; border-radius: 999px; background: var(--st-soft); border: 1px solid var(--st-line); font-size: .9rem; font-weight: 500; color: var(--st-ink); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; }
.info-list b { display: block; color: var(--st-ink); font-size: .86rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: flex; gap: 16px; }
.steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--st-blue); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Why */
.why-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--st-line); height: 100%; font-weight: 600; color: var(--st-ink); }
.why-item.feature { background: linear-gradient(145deg, var(--st-blue), var(--st-blue-700)); color: #fff; text-decoration: none; justify-content: space-between; border: 0; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mosaic div { border-radius: 18px; padding: 22px; min-height: 140px; color: #fff; font-weight: 650; display: flex; flex-direction: column; justify-content: space-between; }
.mosaic .bi { font-size: 1.8rem; }
.mosaic .tall { grid-row: span 2; }

/* Bands */
.band { border-radius: 28px; padding: 56px; color: #c4d3ec; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--st-navy), #0d2f5e); }
.band::after { content: ''; position: absolute; left: -80px; bottom: -130px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(79,155,255,.35), transparent 70%); }
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; }
@media (max-width: 767px) { .band { padding: 32px 22px; } }
.product-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.product-link:hover { color: #fff; background: rgba(255,255,255,.13); }
.product-link small { display: block; color: #9db2d6; }
.cta-band { border-radius: 28px; padding: 56px; color: #e8f1ff; position: relative; overflow: hidden; background: linear-gradient(120deg, #1a73e8 0%, #3d8bff 60%, #6aa8ff 100%); }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .form-control { border-radius: 999px; border: 0; padding: .8rem 1.2rem; }
.cta-band .form-check-label a { color: #fff; }
@media (max-width: 767px) { .cta-band { padding: 32px 22px; } }
.topic-chip { font-size: .8rem; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; }

/* Office */
.office-card { border-radius: 24px; overflow: hidden; border: 1px solid var(--st-line); background: #fff; box-shadow: 0 20px 50px -24px rgba(11,27,51,.3); }
.map-frame { min-height: 340px; height: 100%; position: relative; background: linear-gradient(135deg, #e9f1fd, #f7faff); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.verify { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #fff2b8; color: #6b5300; margin-left: 6px; }
.photo-ph { aspect-ratio: 4/3; border-radius: 14px; border: 2px dashed #c7d5ea; display: grid; place-items: center; text-align: center; color: var(--st-muted); font-size: .85rem; background: repeating-linear-gradient(45deg, #f7faff, #f7faff 10px, #f1f6fd 10px, #f1f6fd 20px); }
.photo-ph .bi { font-size: 1.6rem; color: #9fb3d1; display: block; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--st-line); border-radius: 24px; padding: 36px; box-shadow: 0 20px 50px -24px rgba(11,27,51,.25); }
@media (max-width: 575px) { .form-card { padding: 24px 18px; } }
.form-label { font-weight: 600; font-size: .9rem; color: var(--st-ink); }
.form-label .req { color: #d93a3a; }
.form-label .opt { color: var(--st-muted); font-weight: 400; font-size: .82rem; }
.form-control, .form-select { border-radius: 12px; border: 1.5px solid #d3dce9; padding: .7rem .9rem; min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: var(--st-blue); box-shadow: 0 0 0 .25rem rgba(26,115,232,.15); }
.form-check-input:checked { background-color: var(--st-blue); border-color: var(--st-blue); }
.btn-check + .btn-chip { border: 1.5px solid #d3dce9; border-radius: 999px; padding: .45rem 1rem; font-weight: 500; font-size: .9rem; background: #fff; color: var(--st-ink); box-shadow: none; }
.btn-check:checked + .btn-chip { background: var(--st-blue-50); border-color: var(--st-blue); color: var(--st-blue-700); }
.btn-check:checked + .btn-chip::before { content: '✓ '; font-weight: 800; }
.chip-group.is-invalid .btn-chip { border-color: #dc3545; }
.chip-feedback { display: none; color: #dc3545; font-size: .875em; margin-top: .25rem; }
.chip-group.is-invalid ~ .chip-feedback { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Event detail */
.event-hero { position: relative; color: #c4d3ec; overflow: hidden; background: var(--st-navy); }
.event-hero .banner-art, .event-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,54,.96), rgba(7,26,54,.78) 55%, rgba(7,26,54,.35)); }
.event-hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.event-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.agenda { list-style: none; padding: 0; margin: 0; border-left: 2px solid #d9e8fd; }
.agenda li { position: relative; padding: 0 0 18px 24px; }
.agenda li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--st-blue); }
.agenda .t { display: block; font-weight: 700; color: var(--st-blue-600); font-size: .9rem; }
.person { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--st-line); border-radius: 16px; height: 100%; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--st-blue), #6aa8ff); color: #fff; font-weight: 750; display: grid; place-items: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sticky-aside { position: sticky; top: 96px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--st-line); display: inline-grid; place-items: center; color: var(--st-ink); background: #fff; text-decoration: none; }
.share-btn:hover { border-color: var(--st-blue); color: var(--st-blue); }
.notice-sample { background: #fffbe6; border: 1px dashed #d9b400; color: #5c4700; border-radius: 12px; padding: 12px 16px; font-size: .9rem; }

/* Footer */
.st-footer { background: var(--st-navy); color: #9eb0cf; padding: 72px 0 28px; font-size: .93rem; }
.st-footer a { color: #c9d7ee; text-decoration: none; }
.st-footer a:hover { color: #fff; }
.st-footer h6 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--bs-body-font-family); }
.st-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.st-footer .logo-light { height: 44px; width: auto; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.socials a:hover { background: var(--st-blue); border-color: var(--st-blue); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #7f93b5; }

/* Mobile sticky CTA */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1030; display: flex; gap: 8px; padding: 8px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border: 1px solid var(--st-line); border-radius: 999px; box-shadow: 0 20px 40px -14px rgba(11,27,51,.4); transform: translateY(130%); transition: transform .25s; }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; padding: .55rem; }
@media (min-width: 992px) { .mobile-cta { display: none; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-card { animation: none; } }
.empty-state { text-align: center; padding: 48px 20px; border: 2px dashed var(--st-line); border-radius: 20px; color: var(--st-muted); }
.empty-state .bi { font-size: 2.4rem; color: #9fb3d1; }

/* Keep large gutters from overflowing the container on small screens */
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }

/* =====================  Photo-led components  ===================== */
.photo { position: relative; border-radius: 22px; overflow: hidden; background: #dfe8f5; }
.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-img[hidden], [data-photo][hidden], .moments figure[hidden], .photo[hidden], .pcard-img[hidden] { display: none !important; }
.photo .ph-img { position: absolute; inset: 0; }
a.photo .ph-img { transition: transform .5s ease; }
a.photo:hover .ph-img { transform: scale(1.04); }

/* Hero collage */
.collage { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; }
.collage .c1 { grid-row: span 2; }
.collage .photo { box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.collage .float-card { left: -22px; bottom: 26px; }
@media (max-width: 991px) { .collage { height: 420px; } .collage .float-card { left: 12px; bottom: 12px; } }
@media (max-width: 575px) { .collage { height: 340px; gap: 10px; grid-template-columns: 1.3fr 1fr; } }

/* Photo cards (pillars) */
.pcard { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--st-line); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(11,27,51,.35); color: inherit; }
.pcard-img { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--c); }
.pcard-img .ph-img { transition: transform .5s ease; }
.pcard:hover .pcard-img .ph-img { transform: scale(1.05); }
.pcard-badge { position: absolute; left: 16px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; background: var(--c, #1a73e8); color: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); border: 3px solid #fff; z-index: 1; }
.pillar-photo .pcard-badge { bottom: 16px; }
.pcard-body { padding: 32px 20px 20px; }
.pcard-body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.pcard-body p { color: var(--st-muted); margin: 0; font-size: .95rem; }
.pcard-cta { background: linear-gradient(150deg, var(--st-blue), var(--st-blue-700)); color: #e3eeff; border: 0; padding: 28px; justify-content: space-between; min-height: 260px; }
.pcard-cta:hover { color: #fff; }
.pcard-cta h3 { color: #fff; font-size: 1.4rem; }
.pcard-cta .link-arrow { color: #fff; }

/* Community moments wall */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px;
  grid-template-areas: "a b c d" "a e e f" "g g h f"; }
.moments .m { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #dfe8f5; }
.moments .m .ph-img { position: absolute; inset: 0; transition: transform .5s ease; }
.moments .m:hover .ph-img { transform: scale(1.05); }
.moments .m1 { grid-area: a; } .moments .m2 { grid-area: b; } .moments .m3 { grid-area: c; } .moments .m4 { grid-area: d; }
.moments .m5 { grid-area: e; } .moments .m6 { grid-area: f; } .moments .m7 { grid-area: g; } .moments .m8 { grid-area: h; }
.moments figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(7,26,54,.75)); opacity: 0; transition: opacity .2s; }
.moments .m:hover figcaption, .moments .m:focus-within figcaption { opacity: 1; }
@media (max-width: 767px) { .moments { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; grid-template-areas: "a b" "a c" "e e" "d f" "g f"; } .moments .m8 { display: none; } }
.why-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--st-blue-50); color: var(--st-blue-700); font-weight: 600; font-size: .88rem; }
.why-chip.light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }

/* Split photo + dark text panel */
.split-photo { display: grid; border-radius: 28px; overflow: hidden; background: var(--st-navy); }
.split-photo .photo { border-radius: 0; min-height: 300px; }
.split-body { padding: 48px; color: #c4d3ec; display: flex; flex-direction: column; justify-content: center; }
.split-body h2 { color: #fff; }
@media (min-width: 992px) { .split-photo { grid-template-columns: 1.1fr 1fr; } }
@media (max-width: 575px) { .split-body { padding: 28px 22px; } }

/* Full-width photo band with overlay text */
.photo-band { position: relative; border-radius: 28px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; background: var(--st-navy); }
.photo-band > .ph-img { position: absolute; inset: 0; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,54,.92) 0%, rgba(7,26,54,.7) 45%, rgba(7,26,54,.15) 100%); }
.photo-band-body { position: relative; z-index: 1; padding: 48px; max-width: 640px; color: #dbe6fa; }
.photo-band-body h2 { color: #fff; }
@media (max-width: 575px) { .photo-band-body { padding: 28px 22px; } .photo-band::after { background: linear-gradient(0deg, rgba(7,26,54,.95) 30%, rgba(7,26,54,.4)); } }

/* Page headers with background photo */
.page-hero.has-photo { padding: 96px 0 80px; }
.page-hero .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-photo::after { content: ''; position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(90deg, rgba(7,26,54,.94), rgba(7,26,54,.65) 60%, rgba(7,26,54,.35)); top: 0; right: 0; }
.office-card .photo { min-height: 320px; }
@media (max-width: 575px) {
  .pcard-body { padding: 26px 12px 14px; } .pcard-body h3 { font-size: 1rem; } .pcard-body p { font-size: .82rem; }
  .pcard-badge { width: 40px; height: 40px; font-size: 1.05rem; left: 10px; bottom: -18px; }
  .pcard-cta { padding: 18px; min-height: 0; } .pcard-cta h3 { font-size: 1.1rem; } .pcard-cta p { font-size: .85rem; }
}
