/* brookehavenweb.com · Harbor: deep harbour blue, mist grey, chart lines */
:root {
  --navy: #17304C;
  --navy-soft: #2C4A6B;
  --mist: #F4F6F8;
  --paper: #FAFBFC;
  --ink: #1E2A36;
  --soft: #3C4A57;
  --muted: #5D6E7E;
  --line: #C9D4DE;
  --line-soft: #E1E8EE;
  --red: #D6604C;
  --shell: 1160px;
  --display: 'Cardo', Georgia, 'Times New Roman', serif;
  --body: 'Red Hat Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--mist); }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.55rem, 3.2vw, 2.15rem);
     line-height: 1.15; letter-spacing: .002em; margin: 0 0 .6rem; color: var(--navy); }
.eyebrow { font-family: var(--body); font-weight: 500; font-size: .74rem; letter-spacing: .2em;
           text-transform: uppercase; color: var(--navy-soft); margin: 0 0 .6rem; }
.section-sub { color: var(--muted); max-width: 60ch; margin: 0 0 1.6rem; }
.note { color: var(--muted); font-size: .88rem; margin: 1rem 0 0; max-width: 72ch; }

/* wave band: fine chart lines, used only above the hero and above the footer */
.wave-band {
  height: 22px;
  background-image:
    repeating-linear-gradient(180deg, rgba(23, 48, 76, .34) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(180deg, rgba(23, 48, 76, .13) 0 1px, transparent 1px 10px);
  background-position: 0 3px, 0 1px;
}

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 251, 252, .94);
               border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 1.05rem;
                padding: .78rem 24px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.14rem; order: 1; margin-right: auto;
            letter-spacing: .01em; text-decoration: none; color: var(--navy); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 1.05rem; flex-wrap: wrap; order: 2; }
.header-inner .btn-sm { order: 3; }
.main-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .9rem; padding: .1rem 0;
              border-bottom: 1px solid transparent; }
.main-nav a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--line); }
.main-nav a:not(.btn)[aria-current="page"] { color: var(--navy); font-weight: 500; border-bottom-color: var(--navy-soft); }
.btn { display: inline-flex; align-items: center; background: var(--navy); color: var(--paper);
       font-family: var(--body); font-weight: 500; font-size: .95rem; letter-spacing: .02em;
       border: 1px solid var(--navy); border-radius: 2px; padding: .68rem 1.25rem;
       text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-sm { padding: .4rem .9rem; font-size: .83rem; }

/* hero */
.hero { padding: 0 0 2.1rem; }
.hero .wave-band { margin-bottom: 2.2rem; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 2.7rem; align-items: center; }
.kicker { font-weight: 500; font-size: .78rem; letter-spacing: .17em; text-transform: uppercase;
          color: var(--navy-soft); margin: 0 0 .9rem; }
.kicker::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .55rem;
                  border-radius: 50%; background: var(--red); vertical-align: .08em; }
.hero-title { font-family: var(--display); font-weight: 700; margin: 0 0 .9rem;
              font-size: clamp(2.5rem, 6vw, 4.1rem); line-height: 1; color: var(--navy); letter-spacing: .004em; }
.hero-tagline { font-family: var(--display); font-size: 1.22rem; line-height: 1.4; color: var(--ink);
                margin: 0 0 .8rem; max-width: 34ch; }
.hero-intro { color: var(--muted); max-width: 52ch; margin: 0 0 1.6rem; }
.hero-photo { margin: 0; }
.frame { border: 2px solid var(--navy); padding: 9px; background: var(--paper); }
.frame img { display: block; width: 100%; height: auto; border: 1px solid rgba(23, 48, 76, .38); }
.hero-photo img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; }
.frame-thin { border-width: 1px; border-color: var(--line); padding: 7px; }

/* sections */
.section { padding: 2.9rem 0; }
.section-tight { padding-top: 1.2rem; }
.section-last { padding-bottom: 4.2rem; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 16px; }
.partner-card { display: flex; align-items: center; justify-content: center; width: 250px; height: 150px;
                border: 1px solid var(--line); background: var(--paper); text-decoration: none;
                transition: border-color .2s ease, box-shadow .2s ease; }
.partner-card:hover { border-color: var(--navy-soft); box-shadow: 0 6px 18px rgba(23, 48, 76, .09); }
.partner-card img { max-width: 188px; max-height: 66px; width: auto; height: auto; object-fit: contain; }

/* quick profile: chart table with a fine double frame */
.chart-frame { border: 1px solid var(--line); background: var(--paper); padding: 10px; max-width: 860px;
               box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line-soft); }
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table th, .facts-table td { text-align: left; padding: .72rem 1rem; vertical-align: baseline;
                                   border-bottom: 1px solid var(--line-soft); }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table th { font-weight: 500; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
                  color: var(--navy-soft); width: 34%; }
.facts-table td { color: var(--ink); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.42fr .92fr; gap: 2.7rem; align-items: start; }
.about-cols p { margin: 0 0 1.05rem; color: var(--soft); }
.quote-bar { margin: 1.6rem 0 0; padding: .2rem 0 .2rem 1.35rem; border-left: 3px solid var(--navy); }
.quote-bar p { font-family: var(--display); font-style: italic; font-size: 1.32rem; line-height: 1.4;
               color: var(--navy); margin: 0 0 .35rem; }
.quote-bar cite { font-style: normal; color: var(--muted); font-size: .84rem; }
.side-photo { margin: 0; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.35rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -1.4rem; top: .5em; width: 7px; height: 7px;
                       margin-left: -4px; border-radius: 50%; background: var(--navy);
                       box-shadow: 0 0 0 3px var(--mist); }
.timeline .when { display: block; font-weight: 500; font-size: .84rem; letter-spacing: .04em;
                  color: var(--navy-soft); margin-bottom: .15rem; }
.timeline .what { display: block; color: var(--soft); font-size: .97rem; }
.career-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.7rem; align-items: start; }
.career-text p { color: var(--soft); margin: 0 0 1rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gcard { margin: 0; border: 1px solid var(--line); background: var(--paper); padding: 8px; }
.gcard img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 24%; }

/* subpages */
.page-top { padding: 2.5rem 0 1.3rem; border-bottom: 1px solid var(--line); margin-bottom: 2.3rem; }
.page-top h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 2.9rem);
               line-height: 1.05; color: var(--navy); margin: .1rem 0 .7rem; }
.page-top .lead { color: var(--muted); max-width: 62ch; margin: 0; }
.reading { max-width: 76ch; }
.story { margin: 0 0 2.4rem; }
.story h2 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); margin: 0 0 .75rem; }
.story p { color: var(--soft); margin: 0 0 1rem; }
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { color: var(--soft); padding: .55rem 0 .55rem 1.1rem; position: relative;
               border-bottom: 1px solid var(--line-soft); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 6px; height: 6px;
                       border-radius: 50%; background: var(--navy-soft); }
.credit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; margin-top: 1.1rem; }
.credit-col h3 { font-weight: 500; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase;
                 color: var(--navy-soft); margin: 0 0 .45rem; }
.credit-col ul { list-style: none; margin: 0; padding: 0; }
.credit-col li { color: var(--soft); font-size: .92rem; padding: .3rem 0; border-bottom: 1px solid var(--line-soft); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .4rem; }
.stat { border: 1px solid var(--line); background: var(--paper); padding: .85rem 1.2rem; min-width: 132px; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .84rem; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-list summary { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.35;
                    color: var(--navy); cursor: pointer; list-style: none; display: flex;
                    justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--navy-soft); font-family: var(--body);
                           transition: transform .18s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer p { color: var(--soft); margin: .7rem 0 0; max-width: 72ch; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .wave-band { border-bottom: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center;
               padding-top: 1.9rem; padding-bottom: 2.2rem; }
.footer-brand { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 700; color: var(--navy); }
.brand-line { color: var(--muted); font-size: .84rem; }
.language-nav { display: flex; flex-wrap: wrap; gap: .3rem .85rem; justify-content: center; }
.language-nav a { color: var(--muted); text-decoration: none; font-size: .86rem; white-space: nowrap; }
.language-nav a:hover { color: var(--navy); }
.language-nav a[aria-current="page"] { color: var(--navy); font-weight: 500; }
.footer-legal { color: var(--muted); font-size: .84rem; margin: 0; text-align: right; }

/* 404 */
.notfound { padding: 4.2rem 0 5rem; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: center 20%; }
  .about-grid, .career-split { grid-template-columns: 1fr; gap: 1.8rem; }
  .side-photo { max-width: 430px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .language-nav { justify-content: flex-start; }
  .footer-legal { text-align: left; }
}
@media (max-width: 900px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { width: auto; height: 128px; }
  .partner-card img { max-width: 150px; max-height: 56px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell, .header-inner { padding-left: 18px; padding-right: 18px; }
  .header-inner { gap: .45rem .8rem; padding-top: .6rem; padding-bottom: .6rem; }
  .header-inner .btn-sm { order: 2; }
  .main-nav { order: 3; flex-basis: 100%; gap: .55rem .85rem; }
  .main-nav a:not(.btn) { font-size: .85rem; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-card { width: auto; height: 122px; }
  .partner-card img { max-width: 130px; max-height: 52px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .credit-grid { grid-template-columns: 1fr; }
  .facts-table th, .facts-table td { padding: .6rem .6rem; }
  .facts-table th { width: 40%; font-size: .72rem; }
  .section { padding: 2.3rem 0; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); }
}
