/* ============================================================
   SERA Institute — public site styles
   Brand: navy #1B2A54 / deep navy #12182E / cream #F7F5F1
          panel #EDEAE3 / gold #A67F3D / light gold #C9A25A
   Type:  Newsreader (serif headings) · Source Sans 3 (body)
   ============================================================ */
:root {
    --navy: #1B2A54;
    --navy-deep: #12182E;
    --cream: #F7F5F1;
    --panel: #EDEAE3;
    --gold: #A67F3D;
    --gold-light: #C9A25A;
    --line: #E4E0D7;
    --ink: #12182E;
    --muted: #4A4E5C;
    --muted-2: #6A6E7A;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
::selection { background: var(--navy); color: var(--cream); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
.wrap--narrow { max-width: 900px; }
.wrap--mid { max-width: 1000px; }
.wrap--wide { max-width: 1120px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(52px, 7vw, 92px); }
.section--panel { background: var(--panel); }
.section--navy { background: var(--navy); color: var(--cream); }

@keyframes seraFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade { animation: seraFade .5s ease both; }

.eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.eyebrow--light { color: var(--gold-light); letter-spacing: .22em; }
.rule { display: block; width: 44px; height: 3px; background: var(--gold); margin-bottom: 22px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(247, 245, 241, .92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 10px); }
.nav a:not(.btn) {
    font-size: 15px; font-weight: 600; letter-spacing: .01em;
    padding: 8px 12px; border-radius: 2px; color: var(--navy);
}
.nav a:not(.btn):hover { color: var(--gold); }
.nav a.is-active:not(.btn) { color: var(--gold); }
.btn {
    display: inline-block; font-weight: 700; letter-spacing: .02em;
    border-radius: 2px; cursor: pointer; border: none;
    padding: 14px 28px; font-size: 15px; font-family: inherit;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--nav { padding: 11px 20px; font-size: 14px; margin-left: 8px; }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--navy-deep); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--navy-deep); }
.btn--cream:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn--ghost { color: var(--cream); border: 1px solid rgba(247, 245, 241, .4); }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.navtoggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.navtoggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

.textlink {
    font-size: 15px; font-weight: 700; color: var(--navy);
    border-bottom: 2px solid var(--gold); padding-bottom: 3px;
}
.textlink:hover { color: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.hero__glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 85% 10%, rgba(166, 127, 61, .16), transparent 55%);
}
.hero__mark {
    position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
    width: min(520px, 42vw); opacity: .05; pointer-events: none;
}
.hero .wrap { position: relative; padding-block: clamp(64px, 10vw, 132px); }
.hero__eyebrow {
    font-size: 14px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold-light); font-weight: 600; margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(38px, 6vw, 72px); line-height: 1.06; letter-spacing: -.01em; max-width: 16ch;
}
.hero p.lead {
    margin-top: 28px; font-size: clamp(17px, 1.5vw, 21px);
    max-width: 60ch; color: #D9DCE6; line-height: 1.55;
}
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero--sub .wrap { padding-block: clamp(56px, 8vw, 104px); }
.hero--sub h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.08; margin-top: 22px; max-width: 20ch; }

/* ---------- Section heads ---------- */
.sec-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 16px; margin-bottom: 44px;
}
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; color: var(--navy); }

/* ---------- Cards (What we do) ---------- */
.cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px; background: var(--line); border: 1px solid var(--line);
}
.card {
    background: var(--cream); padding: 34px 30px 40px;
    position: relative; overflow: hidden; min-height: 230px; transition: background .15s ease;
}
.card:hover { background: #fff; }
.card__num {
    position: absolute; top: 10px; left: 14px; font-family: var(--serif); font-weight: 500;
    font-size: 120px; line-height: 1; color: var(--navy); opacity: .06;
    pointer-events: none; user-select: none;
}
.card h3 {
    font-weight: 600; font-size: 21px; line-height: 1.2; color: var(--navy);
    margin-bottom: 12px; position: relative;
}
.card p { font-size: 15px; color: var(--muted); line-height: 1.55; position: relative; }

/* ---------- Positioning band ---------- */
.quote-band { text-align: center; }
.quote-band .wrap { max-width: 980px; }
.quote-band p {
    font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.32; color: var(--navy); margin-top: 26px; text-wrap: balance;
}

/* ---------- Featured project ---------- */
.feature {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border: 1px solid var(--line); overflow: hidden;
}
.feature__navy {
    background: var(--navy); color: var(--cream);
    padding: clamp(36px, 5vw, 60px); position: relative; overflow: hidden;
}
.feature__navy .mark { position: absolute; right: -40px; bottom: -40px; width: 200px; opacity: .06; }
.feature__navy h3 { font-size: clamp(24px, 3vw, 33px); line-height: 1.16; margin-top: 22px; position: relative; }
.feature__body {
    background: var(--cream); padding: clamp(36px, 5vw, 60px);
    display: flex; flex-direction: column; justify-content: center;
}
.feature__body p { font-size: 17px; line-height: 1.6; color: #3A3E4C; }
.feature__body strong { color: var(--navy); }
.feature__body .textlink { margin-top: 26px; align-self: flex-start; }

/* ---------- Team ---------- */
.team-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.team-preview__item { text-align: center; }
.avatar {
    aspect-ratio: 1; background: var(--navy); border-radius: 2px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.avatar span { font-family: var(--serif); font-size: 34px; color: var(--gold-light); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.team-preview__item .name { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--navy); line-height: 1.2; }
.team-preview__item .role { font-size: 13px; color: var(--muted-2); margin-top: 4px; }

.team-list { display: flex; flex-direction: column; gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: minmax(150px, 200px) 1fr; }
.team-card__photo { background: var(--navy); display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 24px; }
.team-card__photo span { font-family: var(--serif); font-size: clamp(40px, 6vw, 58px); color: var(--gold-light); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: clamp(26px, 3.5vw, 40px); }
.team-card__body h2 { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); color: var(--navy); line-height: 1.15; }
.team-card__role { font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.team-card__bio { font-size: 16px; line-height: 1.6; color: #43474F; margin-top: 16px; }
.team-card__creds { margin-top: 16px; padding-top: 16px; border-top: 1px solid #ECE8DF; font-size: 13.5px; color: var(--muted-2); line-height: 1.5; }
.team-card__creds b { font-weight: 700; color: var(--navy); letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .wrap { max-width: 1000px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.12; }
.cta-band p { margin-top: 22px; font-size: 18px; color: #D9DCE6; max-width: 56ch; margin-inline: auto; }
.cta-band .btn { margin-top: 34px; }

/* ---------- Prose ---------- */
.prose h2 { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); color: var(--navy); margin-bottom: 18px; }
.prose p { font-size: 18px; line-height: 1.65; color: #3A3E4C; }
.prose p + p { margin-top: 16px; }

/* ---------- Vision / Mission ---------- */
.vm {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(20px, 3vw, 32px);
}
.vm__cell { background: #fff; padding: clamp(30px, 4vw, 48px); border-top: 3px solid var(--gold); box-shadow: 0 2px 10px rgba(18, 24, 46, .07); }
.vm__cell p { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.34; color: var(--navy); margin-top: 18px; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: rgba(247, 245, 241, .16); border: 1px solid rgba(247, 245, 241, .16); margin-top: 28px; }
.facts__cell { background: var(--navy); padding: 30px 26px; }
.facts__cell .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9AA2BA; font-weight: 600; }
.facts__cell .v { font-family: var(--serif); font-size: 20px; line-height: 1.3; margin-top: 10px; }

/* ---------- Work areas ---------- */
.work-list { display: flex; flex-direction: column; gap: 2px; }
.work-row {
    background: #fff; border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px);
    display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px);
    align-items: start; transition: border-color .15s ease;
}
.work-row:hover { border-color: var(--gold-light); }
.work-row__num { font-family: var(--serif); font-size: clamp(34px, 5vw, 54px); color: var(--gold); line-height: 1; font-weight: 500; }
.work-row h2 { font-weight: 600; font-size: clamp(21px, 2.6vw, 28px); color: var(--navy); line-height: 1.18; margin-bottom: 14px; }
.work-row p { font-size: 16.5px; line-height: 1.62; color: #43474F; max-width: 70ch; }

/* ---------- Insights ---------- */
.coming-soon { border: 1px dashed #C9C2B2; background: #fff; padding: clamp(44px, 7vw, 88px); text-align: center; border-radius: 2px; }
.coming-soon__badge { width: 64px; height: 64px; margin: 0 auto 26px; border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.coming-soon__badge span { font-family: var(--serif); font-size: 30px; color: var(--gold); }
.coming-soon h2 { font-size: clamp(24px, 3.2vw, 34px); color: var(--navy); line-height: 1.16; }
.coming-soon p { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 56ch; margin: 18px auto 0; }
.coming-soon .btn { margin-top: 30px; }
.pub-types { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pub-type { background: var(--panel); padding: 26px 24px; border-radius: 2px; }
.pub-type .tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pub-type .t { font-family: var(--serif); font-size: 19px; color: var(--navy); margin-top: 10px; line-height: 1.25; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info h2 { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); color: var(--navy); margin-bottom: 24px; }
.contact-rows { display: flex; flex-direction: column; gap: 22px; }
.contact-rows .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.contact-rows .v { font-size: 17px; color: var(--navy); margin-top: 5px; line-height: 1.45; }
.form-card { background: #fff; border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--navy); text-transform: uppercase; }
.field input, .field textarea {
    font-family: inherit; font-size: 16px; padding: 12px 14px;
    border: 1px solid #D8D3C7; border-radius: 2px; background: #FBFAF7; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field .err { color: #B23B2E; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.form-thanks { text-align: center; padding: 30px 10px; }
.form-thanks .mark { font-family: var(--serif); font-size: 40px; color: var(--gold); margin-bottom: 14px; }
.form-thanks h3 { font-weight: 600; font-size: 24px; color: var(--navy); }
.form-thanks p { font-size: 16px; color: var(--muted); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C7CBD8; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); padding-block: clamp(48px, 6vw, 72px) 36px; }
.site-footer__brand { max-width: 400px; }
.site-footer__brand img { height: 44px; width: auto; margin-bottom: 22px; }
.site-footer__brand p { font-size: 15px; line-height: 1.6; color: #9AA2BA; }
.site-footer__social { display: flex; gap: 12px; margin-top: 24px; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(199, 203, 216, .22); border-radius: 50%; color: #C7CBD8; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.site-footer__social a:hover { color: var(--navy-deep); background: var(--gold-light); border-color: var(--gold-light); }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin-bottom: 18px; }
.site-footer__links { display: flex; flex-direction: column; gap: 11px; }
.site-footer__links a { font-size: 15px; color: #C7CBD8; }
.site-footer__links a:hover { color: var(--gold-light); }
.site-footer__contact { display: flex; flex-direction: column; gap: 11px; font-size: 15px; line-height: 1.5; color: #9AA2BA; }
.site-footer__contact a { color: #C7CBD8; }
.site-footer__contact a:hover { color: var(--gold-light); }
.site-footer__bottom { border-top: 1px solid rgba(199, 203, 216, .14); }
.site-footer__bottom .wrap { padding-block: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 13px; color: #6A7086; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav { display: none; }
    .nav.is-open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 76px; left: 0; right: 0;
        background: var(--cream); border-bottom: 1px solid var(--line);
        padding: 12px clamp(20px, 4vw, 48px) 20px; gap: 4px;
    }
    .nav.is-open .btn--nav { margin-left: 0; margin-top: 8px; text-align: center; }
    .navtoggle { display: block; }
    .team-card { grid-template-columns: 1fr; }
    .team-card__photo { min-height: 140px; }
    .site-footer__top { grid-template-columns: 1fr; }
}
