/* Contour Asset Management — static rebuild.
   Typeface: the original uses licensed "Neue Helvetica Extended" (fonts.net, vendor account).
   Archivo at ~112% width is the closest freely licensed match. */

:root {
  --ink: #091B30;
  --nav-ink: #1E2537;
  --body: #474D5A;
  --accent: #4C80A7;
  --accent-bright: #42A9F8;
  --rule: #77AFD4;
  --page-bg: #F8F8F8;
  --bar-bg: #F8F9FB;
  --dark: #1B1D1E;
  --footer: #141414;
  --muted: #B4BABD;
  --link: #459ADE;
  --btn: #386D97;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bar-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: var(--font);
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-weight: 300;
  background: var(--page-bg);
  color: var(--body);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
p, h1, h2, h3, h4 { margin: 0; }
img { max-width: 100%; }

.content { width: 940px; max-width: calc(100% - 32px); margin: 0 auto; padding: 92px 0 115px; }

/* ---------- Top bar ---------- */
#top-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 6;
  background: var(--bar-bg); text-align: center; text-transform: uppercase;
}
#logo-top {
  display: block; height: 0; overflow: hidden;
  transition: height .5s ease, padding .5s ease;
}
#logo-top img { width: 400px; max-width: 80%; height: auto; display: block; margin: 0 auto; }
body.scrolled #logo-top { height: 91px; padding: 14px 0 0; }
#nav { height: var(--bar-h); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
#nav a {
  font-weight: 400; color: var(--nav-ink); text-decoration: none; font-size: 15px;
  letter-spacing: 1px; line-height: var(--bar-h); padding: 0 20px 0 32px;
  background: url(../img/bullet.png) no-repeat left center;
  transition: color .4s;
}
#nav a:first-child { background: none; padding-left: 0; }
#nav a:last-child { padding-right: 0; }
#nav a:hover, #nav a.active { color: var(--accent); }

/* ---------- Section headers ---------- */
.header {
  font-weight: 200; text-transform: uppercase; font-size: 43px; line-height: 43px;
  color: var(--ink); text-align: center;
}
.header-rule { width: 70px; height: 1px; background: var(--rule); margin: 14px auto 67px; }
.reg { margin-bottom: 24px; font-size: 16px; line-height: 26px; color: var(--body); }

/* ---------- Home ---------- */
#home {
  position: relative; height: 100vh; height: 100svh; min-height: 480px;
  background: url(../img/home.jpg) no-repeat center center / cover fixed;
  text-align: center; color: #fff; text-transform: uppercase;
}
.hero-title { position: absolute; top: 45%; left: 0; right: 0; transform: translateY(-50%); }
.hero-title h1 { font-size: 64px; font-weight: 500; line-height: 45px; padding-right: 8%; }
.hero-title h2 { font-size: 63px; font-weight: 200; line-height: 1.2; padding-left: 8%; letter-spacing: 1px; }
.home-arrow {
  position: absolute; top: 45%; left: 50%; width: 90px; height: 90px;
  margin: 110px 0 0 -45px;
  background: url(../img/homeDown.png) no-repeat center center;
}

/* ---------- About ---------- */
.about-lead { font-size: 22px; line-height: 36px; color: var(--accent); margin-bottom: 30px; text-align: justify; }
#about .reg { text-align: justify; }

/* ---------- Strategy ---------- */
#strategy { background: url(../img/strategy.jpg) no-repeat center center / cover; }
#strategy .header, #strategy .reg { color: #fff; }

/* ---------- Team ---------- */
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; }
.team-row.solo { grid-template-columns: 1fr; }
.person {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  border-top: 2px solid var(--body); padding: 34px 40px 45px 0;
  font: inherit; color: var(--body); text-align: left;
  background: url(../img/plus.png) no-repeat right 12px center;
  transition: color .5s;
}
.team-row.solo .person { text-align: center; padding-left: 40px; background-position: right 13px center; }
.person[aria-expanded="true"] { color: var(--accent-bright); background-image: url(../img/minus.png); }
.person:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.person .name { display: block; font-size: 16px; line-height: 20px; }
.person .role { display: block; font-size: 14px; line-height: 20px; }
/* Markup puts each bio right after its button; on desktop all bios sit in row 2, full width. */
.bio {
  grid-column: 1 / -1; grid-row: 2; overflow: hidden; height: 0;
  transition: height .5s ease;
}
.bio p { padding: 35px 0 72px; font-size: 16px; line-height: 26px; }

/* ---------- Contact ---------- */
#contact { background: var(--dark); }
#contact .header { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 405px 405px; justify-content: space-between; text-align: left; }
.contact-head { font-size: 26px; line-height: 33px; color: #fff; border-bottom: 1px solid #fff; padding-bottom: 14px; font-weight: 300; }
.contact-p, .contact-info { line-height: 27px; font-size: 14px; color: var(--muted); }
.contact-p { margin-top: 11px; font-style: normal; }
.contact-info { margin-top: 10px; }
.contact-p b, .contact-info b { font-weight: 500; }
.contact-info a { text-decoration: none; color: var(--link); }
.contact-info a.tel { color: inherit; }

#emailform input, #emailform textarea {
  display: block; width: 100%; color: var(--muted); background: transparent; border: 0;
  border-bottom: 1px solid #494A4B; font: inherit; font-size: 14px; line-height: 39px; resize: none; border-radius: 0;
}
#emailform input { height: 39px; }
#emailform textarea { height: 80px; }
#emailform ::placeholder { color: var(--muted); opacity: 1; }
#emailform input:focus, #emailform textarea:focus { outline: none; border-bottom-color: var(--muted); }
.btn-send {
  display: block; width: 100%; margin-top: 18px; height: 40px; padding: 0 0 0 18px; border: 0;
  background: var(--btn); color: #fff; font: inherit; font-size: 14px; font-weight: 500;
  text-align: left; cursor: pointer;
}
.btn-send:hover { background: #2f5f86; }
.btn-send[disabled] { opacity: .6; cursor: default; }
#response { margin-top: 11px; font-size: 15px; line-height: 24px; color: var(--muted); min-height: 24px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer & map ---------- */
#footer { background: var(--footer); }
#footer .content { padding: 0; }
#footer p { font-size: 14px; color: var(--muted); line-height: 50px; text-align: left; }
#footer a { color: #fff; }
#map { display: block; height: 360px; background: url(../img/contour-map.jpg) no-repeat center center / cover; }

/* ---------- Smaller screens (the original site is desktop-only) ---------- */
@media (max-width: 979px) {
  #home { background-attachment: scroll; }
  .content { padding: 72px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; row-gap: 48px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 100px; }
  #nav a { font-size: 12px; padding: 0 10px 0 18px; }
  body.scrolled #logo-top { height: 60px; padding-top: 10px; }
  #logo-top img { width: 240px; }
  .header { font-size: 32px; line-height: 34px; }
  .header-rule { margin-bottom: 40px; }
  .hero-title h1 { font-size: 34px; line-height: 34px; padding-right: 0; }
  .hero-title h2 { font-size: 33px; padding-left: 0; }
  .home-arrow { margin-top: 70px; }
  .about-lead { font-size: 18px; line-height: 28px; text-align: left; }
  #about .reg { text-align: left; }
  .team-row { grid-template-columns: 1fr; }
  .bio { grid-row: auto; }
  .team-row .person, .team-row.solo .person { padding: 22px 40px 26px 0; text-align: left; }
  .bio p { padding: 8px 0 32px; }
  #footer p { line-height: 22px; padding: 14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #logo-top, .bio, .person, #nav a { transition: none; }
}
