/* Horseferry & Partners — rebuilt from the original Wix site */
:root {
  --navy: #23303b;
  --navy-hero: #20303c;
  --slate: #465966;
  --light: #f0f0f0;
  --white: #ffffff;
  --grey: #c7c7c7;
  --tan: #afa59a;
  --tan-dark: #8a827c;
  --ink: #000000;
  --heavy: "Avenir", "Avenir Next", "Nunito Sans", "Segoe UI", sans-serif;
  --light-font: "Avenir", "Avenir Next", "Nunito Sans", "Segoe UI", sans-serif;
  --col: calc(50% - 309px); /* content left edge, as on the 980px Wix grid */
  --col-w: 777px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--heavy);
  font-weight: 800;
}
body.theme-navy { background: var(--navy); }
p, h1, h2, h3, h4, h5, h6, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Fixed header: logo (top right) + menu (bottom left) ---------- */
.logo {
  position: fixed;
  top: 30px;
  right: max(16px, calc(50% - 608px));
  z-index: 50;
  width: 166px;
}
.menu {
  position: fixed;
  left: 69px;
  bottom: 59px;
  z-index: 50;
  list-style: none;
  padding: 0;
}
.menu a {
  display: block;
  font-size: 27px;
  line-height: 38px;
  color: var(--tan);
  transition: color .3s;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--tan-dark); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--navy-hero);
  overflow: hidden;
}
.hero.is-light { background: var(--light); }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.is-active { opacity: 1; }
.hero-text {
  position: absolute;
  right: max(16px, calc(50% - 608px));
  top: calc(100% - 283px);
  color: var(--light);
  font-size: 40px;
  line-height: 47px;
  letter-spacing: .7em;
  text-align: right;
  margin-right: -.7em;
}
.hero-text .tight { letter-spacing: 2px; }

/* ---------- Section headings ("Motto", "Expertise"…) ---------- */
.block { position: relative; padding-left: var(--col); }
.block-motto { min-height: 375px; padding-top: 60px; }
.block-heading { min-height: 228px; padding-top: 50px; }
.block-title {
  font-size: 50px;
  line-height: 80px;
  letter-spacing: 2.5px;
  font-weight: 800;
}
.rule {
  height: 1px;
  margin: 42px 0 29px;
  background: var(--tan);
}
.lead {
  max-width: 752px;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 1px;
  text-align: justify;
}
.lead.is-small { font-size: 15px; letter-spacing: .75px; }

.on-navy { color: var(--light); }
.on-light { background: var(--light); color: var(--ink); }

/* ---------- Hover panels (regular state ↔ image + description) ---------- */
.panel {
  position: relative;
  height: 1009px;
  overflow: hidden;
  cursor: default;
}
.panel.is-short { height: 962px; }
.panel-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: var(--col);
  transition: opacity .5s, visibility .5s;
}
.panel-front { background: var(--light); color: var(--ink); }
.panel.on-navy .panel-front { background: var(--navy); color: var(--light); }
.panel-back {
  background: #000;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
}
.panel-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img) center / cover no-repeat;
  opacity: .3;
}
.panel:hover .panel-back, .panel.is-open .panel-back { opacity: 1; visibility: visible; }
.panel:hover .panel-front, .panel.is-open .panel-front { opacity: 0; visibility: hidden; }

.panel-front .text {
  max-width: var(--col-w);
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 1px;
}
.panel.on-navy .panel-front { padding-bottom: 78px; }
.panel.on-navy .panel-front .text { font-size: 15px; letter-spacing: .75px; }
.panel-back .text {
  position: relative;
  max-width: 732px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .8px;
  text-align: justify;
}
.text .gap { height: 1.6em; }
.panel-back a { text-decoration: underline; }

/* ---------- Home: portfolio list ---------- */
.portfolio-list {
  min-height: 986px;
  padding-top: 112px;
  padding-left: var(--col);
  background: var(--light);
}
.portfolio-list .rule { margin: 42px 0 130px; }
.values { list-style: none; padding: 0; max-width: 585px; }
.values li {
  font-size: 25px;
  line-height: 41px;
  padding-bottom: 1px;
  position: relative;
}
.values li::after, .explore::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 100%;
  background: var(--tan);
  opacity: 0;
  transition: opacity .5s;
}
.values li:hover::after, .explore:hover::after { opacity: 1; }
.explore {
  position: relative;
  display: inline-block;
  margin-top: 151px;
  font-size: 11px;
  line-height: 18px;
}

.story { min-height: 1205px; padding-top: 118px; }
.story .rule { margin: 42px 0 136px; }
.story-text { max-width: 739px; font-size: 15px; line-height: 1.6; font-weight: 800; }

/* ---------- Contact ---------- */
.contact { padding: 82px 0 135px var(--col); }
.contact .rule { margin: 42px 0 98px; }
.address { font-size: 20px; line-height: 1.6; letter-spacing: 1px; max-width: var(--col-w); }
.contact-form {
  display: grid;
  grid-template-columns: 285px 285px;
  column-gap: 50px;
  row-gap: 35px;
  width: 620px;
  margin-top: 117px;
}
.field {
  width: 100%;
  height: 50px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--tan);
  background: transparent;
  font: 300 11px/1.4 var(--light-font);
  color: var(--ink);
}
.field::placeholder { color: var(--tan); }
textarea.field {
  grid-column: 1 / -1;
  height: 126px;
  margin-top: 19px;
  padding: 12px;
  border: 2px solid var(--tan);
  resize: vertical;
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  margin-top: -19px;
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 0;
  font: 800 13px var(--heavy);
  color: var(--ink);
  cursor: pointer;
}
.form-note {
  min-height: 18px;
  font: 300 14px var(--light-font);
  letter-spacing: .28px;
  color: var(--tan-dark);
}

/* ---------- Legal pages ---------- */
.legal-head {
  height: 498px;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 30px;
}
.legal-head h1 { font-size: 24px; font-weight: 800; color: var(--tan); }
.legal-body { background: var(--white); padding: 128px 16px 200px; }
.legal-text {
  max-width: 842px;
  margin: 0 auto;
  font: 300 11px/1.6 var(--light-font);
  text-align: justify;
}
.legal-text h2 { font-size: inherit; font-weight: inherit; }
.legal-text b { font-weight: 800; font-family: var(--heavy); }
.legal-text a { text-decoration: underline; }
.legal-text ul { padding-left: 2em; }

/* ---------- Footer ---------- */
.footer { background: var(--grey); height: 579px; }
.footer-inner {
  position: relative;
  max-width: 980px;
  height: 100%;
  margin: 0 auto;
}
.subscribe {
  position: absolute;
  top: 41px;
  right: 24px;
  width: 350px;
}
.subscribe input[type="email"] {
  width: 100%;
  height: 45px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(27, 27, 71, .35);
  background: transparent;
  font: 300 12px var(--light-font);
  color: #1b1b47;
}
.subscribe input[type="email"]::placeholder { color: #1b1b47; }
.subscribe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 13px;
  font: 300 12px var(--light-font);
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #737373;
  background: transparent;
  cursor: pointer;
}
.check input:checked { background: #737373; box-shadow: inset 0 0 0 3px var(--grey); }
.subscribe .form-note { margin-top: 6px; font-size: 12px; text-align: right; }
.footer-logo { position: absolute; top: 255px; right: 24px; width: 91px; }
.footer-links {
  position: absolute;
  top: 431px;
  left: 510px;
  display: grid;
  grid-template-columns: 134px 128px 106px 108px;
  list-style: none;
  padding: 0;
}
.footer-links a {
  display: block;
  width: 115px;
  text-align: center;
  font-size: 14px;
  line-height: 23px;
}
.footer-links li:last-child a { width: 108px; }
.copyright {
  position: absolute;
  top: 518px;
  right: 18px;
  font: 300 9px var(--light-font);
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  :root { --col: 300px; --col-w: calc(100vw - 340px); }
}
@media (max-width: 760px) {
  :root { --col: 20px; --col-w: calc(100vw - 40px); }
  .logo { top: 18px; right: 16px; width: 120px; }
  .menu-toggle {
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 60;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-toggle span, .menu-toggle::before, .menu-toggle::after {
    content: "";
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px auto;
    background: var(--tan);
  }
  .menu {
    display: none;
    inset: 0;
    left: 0;
    bottom: 0;
    padding: 90px 24px;
    background: rgba(35, 48, 59, .96);
  }
  .menu.is-open { display: block; }
  .hero-text { font-size: 26px; line-height: 36px; right: 16px; letter-spacing: .7em; margin-right: -.7em; }
  .block-title { font-size: 34px; line-height: 54px; }
  .block-motto, .block-heading { min-height: 0; padding: 48px 20px 48px var(--col); }
  .panel, .panel.is-short { height: auto; min-height: 640px; }
  .panel-state { padding: 60px 20px; }
  .panel-front { position: relative; min-height: 640px; }
  .panel-back { position: absolute; overflow-y: auto; align-items: flex-start; }
  .portfolio-list, .story { min-height: 0; padding: 60px 20px 80px; }
  .portfolio-list .rule, .story .rule { margin-bottom: 40px; }
  .values li { font-size: 20px; }
  .explore { margin-top: 48px; }
  .contact { padding: 60px 20px 80px; }
  .contact-form { grid-template-columns: 1fr; width: 100%; }
  .legal-head { height: 260px; }
  .legal-body { padding: 60px 20px; }
  .footer { height: auto; }
  .footer-inner { display: flex; flex-direction: column; align-items: flex-end; gap: 32px; padding: 32px 20px; }
  .subscribe, .footer-logo, .footer-links, .copyright { position: static; }
  .subscribe { width: 100%; max-width: 350px; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
  .footer-links a, .footer-links li:last-child a { width: auto; }
}
