/* SYENE public website: foundation and shared elements. */
:root {
    --ink: #14283e;
    --muted: #617386;
    --navy: #0b1d31;
    --teal: #009b90;
    --teal-dark: #007e76;
    --background: #f5f8fa;
    --line: #e5ecf0;
    --shadow: 0 18px 55px rgb(20 40 62 / 9%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: 'DM Sans', sans-serif; }
h1, h2, h3, h4 { font-family: Manrope, sans-serif; letter-spacing: -.04em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #19bbae; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 14px; background: white; color: var(--navy); }
.skip-link:focus { top: 12px; }
.btn { border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 13px; padding: 14px 20px; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; border: 1px solid #becdd5; color: #294457; }
.btn-white { background: white; color: #14344b; }
.section-link { font-size: 13px; font-weight: 800; color: var(--teal-dark); }
.section-link:hover, .post h3 a:hover, .feature-content h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kicker { text-transform: uppercase; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .17em; }

/* Navigation. With JavaScript disabled, the menu stays visible on small screens. */
.topbar { background: #071827; color: #b5cedc; font-size: 12px; }
.topbar .container { min-height: 35px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar strong { color: #66dfd3; }
.nav { background: white; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 12px #081c3008; }
.nav-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; white-space: nowrap; }
.logo { height: 47px; width: 47px; background: #0b3147; border-radius: 13px; display: grid; place-items: center; }
.logo svg { width: 32px; }
.brand-name { font: 800 20px/1.05 Manrope, sans-serif; letter-spacing: -.06em; }
.brand-name small { display: block; font: 700 9px/1.9 'DM Sans', sans-serif; letter-spacing: .25em; color: var(--teal); }
.navlinks { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 13px; color: #596879; }
.navlinks a:hover { color: var(--teal-dark); }
.nav-actions { display: flex; align-items: center; gap: 11px; }
.hamburger { display: none; border: 0; background: none; padding: 8px; font-size: 25px; }

/* Hero slides auto-advance, with manual dots and a pause control. */
.hero { background: #092137; color: white; position: relative; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; display: flex; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.hero-background { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #071a2cf7 3%, #0a2138ef 40%, #0a2138a0 75%, #0a21386b); }
.hero-content { position: relative; z-index: 1; }
.hero-inner { padding: 77px 0 34px; max-width: 710px; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; color: #48e5d7; }
.eyebrow::before { content: ''; height: 7px; width: 7px; border-radius: 50%; background: #26d7c9; flex: 0 0 auto; }
.hero-title { font-size: clamp(37px, 5vw, 60px); line-height: 1.15; margin: 20px 0; font-weight: 800; }
.hero-title em { font-style: normal; color: #2cd7c7; }
.hero-inner p { font-size: 16px; line-height: 1.85; color: #c1d2dd; max-width: 560px; margin: 0 0 30px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-inner .hero-caption { margin: 32px 0 0; font-size: 12px; color: #b9cfda; }
.hero-caption strong { color: white; }
.hero-controls { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; min-height: 62px; }
.hero-dots { display: flex; align-items: center; gap: 4px; }
.hero-dot { width: 36px; height: 36px; display: grid; place-items: center; }
.hero-dot::after { content: ''; width: 20px; height: 4px; border-radius: 6px; background: #a9bac2; }
.hero-dot[aria-current]::after { background: #2cd7c7; }
.hero-autoplay { border: 1px solid #70818e; border-radius: 20px; padding: 9px 16px; background: transparent; color: white; font-size: 12px; }

/* Community values, journal and event sidebar. */
.stat-row { background: white; box-shadow: 0 9px 25px #13293d0a; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 0; }
.stat { display: flex; align-items: center; gap: 14px; padding: 0 28px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: #e8faf7; color: var(--teal-dark); font-size: 20px; flex-shrink: 0; }
.stat strong { display: block; font: 800 23px Manrope, sans-serif; }
.stat span:not(.stat-icon) { font-size: 12px; color: var(--muted); }
.section { padding: 76px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 27px; }
.section h2 { font-size: clamp(25px, 3vw, 37px); margin: 8px 0 12px; }
.section-head p { color: var(--muted); margin: 0; line-height: 1.6; font-size: 14px; max-width: 590px; }
.editorial-label { color: var(--teal-dark); font-size: 12px; font-weight: 700; padding-bottom: 3px; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .84fr); gap: 25px; }
.feed-layout > *, .mission-grid > *, .join-layout > * { min-width: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 15px; }
.chip { border: 1px solid #dce6e9; background: white; color: #536579; border-radius: 7px; padding: 10px 15px; white-space: nowrap; font-size: 12px; font-weight: 800; }
.chip.active { background: #11344b; color: white; border-color: #11344b; }
.search-wrap { display: flex; gap: 10px; margin-bottom: 18px; }
.search-wrap input { width: 100%; min-width: 0; border: 1px solid #d6e1e5; border-radius: 9px; padding: 11px 13px; font-size: 13px; }
.feed { display: grid; gap: 22px; }
.post { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 5px 23px #14283e08; }
.post-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 18px 21px; }
.author { display: flex; gap: 12px; align-items: center; min-width: 0; }
.initial-avatar { width: 41px; height: 41px; border-radius: 50%; background: #def4f0; display: grid; place-items: center; font-weight: 800; color: #007a70; }
.author strong { font-size: 13px; display: block; }
.author time { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.tag { border-radius: 5px; padding: 7px 9px; color: #007a70; background: #e8f9f6; font-size: 10px; font-weight: 800; }
.post h3 { font-size: 19px; margin: 0 21px 10px; letter-spacing: -.025em; line-height: 1.5; }
.post p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 21px 19px; }
.post-media { height: 305px; display: block; background: #dbe7e9; overflow: hidden; }
.post-media img { height: 100%; transition: transform .35s; }
.post-media:hover img { transform: scale(1.035); }
.post-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 21px; color: var(--muted); font-size: 11px; }
.post-footer .section-link { white-space: nowrap; }
.sidebar { display: grid; align-content: start; gap: 20px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 23px; box-shadow: 0 5px 23px #14283e07; }
.panel h3 { font-size: 20px; margin: 10px 0; }
.panel-desc { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
.panel .kicker { font-size: 9px; }
.event { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.datebox { width: 48px; min-width: 48px; height: 54px; background: #eaf8f6; border-radius: 8px; text-align: center; padding: 6px; }
.datebox strong { font-size: 19px; display: block; color: var(--teal-dark); font-family: Manrope, sans-serif; }
.datebox span { font-size: 9px; color: #497a75; font-weight: 800; text-transform: uppercase; }
.event-info h4 { margin: 2px 0 6px; font-size: 13px; line-height: 1.5; letter-spacing: 0; }
.event-info p { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.event-info .section-link { font-size: 11px; }
.join-box { background: linear-gradient(145deg, #103e50, #092538); border-radius: 14px; padding: 27px; color: white; }
.join-box h3 { font-size: 27px; margin: 14px 0; }
.join-box p { font-size: 13px; line-height: 1.9; color: #b7d5df; margin: 0 0 20px; }
.join-box .btn { width: 100%; }
.empty { padding: 40px 25px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 0; }

/* Activities and mission. */
.soft { background: #edf3f4; }
.activity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature-card { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 5px 23px #14283e07; }
.feature-card img { height: 180px; }
.feature-content { padding: 21px; }
.feature-content .mini { color: var(--teal-dark); font-weight: 800; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.feature-content h3 { font-size: 18px; margin: 10px 0; line-height: 1.4; }
.feature-content p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 16px; }
.feature-content .section-link { font-size: 12px; }
.mission { background: #0b2d42; color: white; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.mission h2 { font-size: clamp(29px, 3.5vw, 42px); }
.mission p { line-height: 1.9; color: #b6ccd7; font-size: 14px; }
.mission-points { display: grid; gap: 15px; margin: 25px 0 28px; padding: 0; list-style: none; }
.mission-points li { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 700; line-height: 1.7; }
.mission-points li::before { content: '✓'; background: #0d665f; color: #a2ffe9; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
.mission-image { position: relative; }
.mission-image img { height: 355px; border-radius: 15px; }
.floating-label { position: absolute; bottom: -19px; left: -19px; background: white; color: #163d4c; padding: 18px 23px; border-radius: 10px; box-shadow: var(--shadow); }
.floating-label strong { font-size: 21px; display: block; }
.floating-label span { font-size: 11px; color: var(--muted); }

/* Detail pages and the membership form preview. */
.detail { max-width: 850px; }
.detail-header { margin: 34px 0; }
.detail-header h1 { font-size: clamp(32px, 4vw, 49px); line-height: 1.25; margin: 14px 0; }
.detail > p, .detail-header p { font-size: 16px; line-height: 1.95; color: var(--muted); }
.detail-image { height: auto; aspect-ratio: 5 / 3; border-radius: 14px; margin-bottom: 32px; }
.detail-cta { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 25px; }
.detail-cta h2 { font-size: 23px; }
.notice { border: 1px solid #bce3db; background: #eefaf7; color: #255c56; padding: 18px; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.notice p { margin: 6px 0 0; }
.notice.error { color: #982f40; background: #fff0f1; border-color: #ecc4cb; margin-bottom: 18px; }
.notice.success { margin-bottom: 18px; }
.event-facts { display: grid; gap: 16px; margin: 28px 0; }
.event-facts dt { font-size: 12px; font-weight: 800; color: var(--teal-dark); margin-bottom: 6px; }
.event-facts dd { margin: 0; font-size: 15px; line-height: 1.8; }
.join-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.join-intro { padding-top: 35px; }
.join-intro h1 { font-size: clamp(35px, 4vw, 51px); line-height: 1.25; }
.join-intro p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.join-panel { padding: 30px; }
.join-panel h2 { font-size: 26px; margin-top: 0; }
.join-panel fieldset { border: 0; padding: 0; margin: 8px 0 20px; min-width: 0; }
.field { display: grid; gap: 7px; margin: 18px 0; }
.field label { font-size: 12px; font-weight: 800; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid #d1dde2; border-radius: 8px; padding: 12px; color: var(--ink); background: #f6f8f9; }
.field textarea { resize: vertical; }
.checkbox-field { display: flex; gap: 10px; font-size: 12px; line-height: 1.7; margin-bottom: 20px; }
.checkbox-field input { margin-top: 4px; }
.join-panel button { width: 100%; }
button:disabled { background: #dfe9e9; color: #4d636b; cursor: default; transform: none; }

/* Footer. */
.footer { background: #071827; color: #b0bfca; padding: 52px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; }
.footer .brand-name { color: white; }
.footer p { max-width: 380px; font-size: 12px; line-height: 1.9; }
.footer h2 { color: white; margin: 0 0 14px; font-size: 13px; letter-spacing: 0; }
.footer a:not(.brand) { display: block; font-size: 12px; margin: 11px 0; }
.footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid #254052; padding-top: 20px; margin-top: 40px; display: flex; justify-content: space-between; font-size: 11px; gap: 10px; line-height: 1.7; }

/* Responsive layouts and motion preferences. */
@media (max-width: 1030px) {
    .navlinks { gap: 15px; font-size: 12px; }
    .nav-actions .btn { padding: 12px; }
    .stat { padding-inline: 15px; }
    .stat strong { font-size: 20px; }
    .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mission-grid, .join-layout { gap: 40px; }
}
@media (max-width: 790px) {
    .nav-inner { min-height: 72px; flex-wrap: wrap; }
    .navlinks { order: 3; width: 100%; padding: 16px 0; flex-wrap: wrap; }
    .js .hamburger { display: block; }
    .js .navlinks { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 23px 24px; flex-direction: column; align-items: start; box-shadow: 0 15px 24px #0002; }
    .js .navlinks.open { display: flex; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat:nth-child(2) { border: 0; }
    .stat:nth-child(3) { padding-left: 0; }
    .feed-layout, .mission-grid, .join-layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
    .mission-image { max-width: 570px; }
    .footer-grid { gap: 35px; }
    .join-intro { padding-top: 0; }
}
@media (max-width: 550px) {
    .container { width: calc(100% - 30px); }
    .topbar .container { justify-content: center; font-size: 10px; }
    .topbar .second { display: none; }
    .nav-inner { gap: 12px; }
    .nav-actions .btn { font-size: 11px; padding: 11px; }
    .logo { width: 39px; height: 39px; }
    .brand-name { font-size: 18px; }
    .hero-inner { padding: 53px 0 25px; }
    .hero-title { font-size: 38px; }
    .hero-inner p { font-size: 14px; }
    .hero-inner .hero-caption { font-size: 11px; }
    .hero-controls { padding-bottom: 18px; }
    .section { padding: 54px 0; }
    .section-head { align-items: start; }
    .editorial-label { display: none; }
    .stats { padding: 23px 0; gap: 20px 0; }
    .stat { gap: 9px; padding: 0 9px; }
    .stat-icon { height: 36px; width: 36px; font-size: 17px; }
    .stat strong { font-size: 17px; }
    .stat span:not(.stat-icon) { font-size: 10px; }
    .sidebar, .activity-grid { grid-template-columns: 1fr; }
    .post-media { height: 220px; }
    .post-footer { align-items: start; flex-direction: column; }
    .mission-image img { height: 255px; }
    .floating-label { left: 10px; bottom: -25px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .join-panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
