/* The landing page. Loaded after brand.css. */

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, #16294a 0%, #0d1b32 55%, #0a1526 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* A faint plot grid, as on a layout drawing. */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200, 162, 74, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 162, 74, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 72% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 46px; align-items: center;
  padding-top: 60px; padding-bottom: 60px;
}
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 760px) {
  .hero .wrap { padding-top: 30px; padding-bottom: 34px; gap: 26px; }
}

.hero h1 {
  font-family: var(--serif);
  /* Grows with the screen instead of jumping at fixed breakpoints. */
  font-size: clamp(27px, 5.2vw, 44px);
  line-height: 1.16; font-weight: normal;
  margin: 14px 0 0; text-wrap: balance;
}
.hero h1 b { color: var(--gold); font-weight: normal; }

.hero .lede {
  font-size: clamp(15px, 2.2vw, 17px); color: #c5d0de; margin: 18px 0 0; max-width: 46ch;
}
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .under { margin-top: 16px; font-size: 13px; color: #93a3b8; }

@media (max-width: 560px) {
  /* The two buttons sit one above the other rather than squeezing side
     by side, and each is wide enough to hit with a thumb. */
  .hero .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .hero-cta .btn { text-align: center; }
  .hero-points { gap: 7px 16px; }
  .hero-points span { font-size: 12.5px; }
}

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.hero-points span {
  font-size: 13.5px; color: #d3dce8; display: flex; align-items: center; gap: 8px;
}
.hero-points span::before {
  content: ""; width: 7px; height: 7px; background: var(--gold); flex: none;
  transform: rotate(45deg);
}

/* The two doors, sellers and buyers, as on the client's poster. */
.doors { display: grid; gap: 16px; }
.door {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--gold);
  padding: 22px 24px;
  text-decoration: none; color: #fff; display: block;
  transition: background 0.16s, transform 0.16s, border-color 0.16s;
}
.door:hover { background: rgba(200, 162, 74, 0.12); transform: translateX(4px); }
.door .kind {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
}
.door h3 { font-size: 20px; margin: 8px 0 6px; font-family: var(--serif); font-weight: normal; }
.door p { margin: 0; font-size: 13.5px; color: #b9c6d6; }
.door .go {
  display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: bold; color: var(--gold);
}
.door .go::after { content: "  \203A"; }
.door.quiet { border-left-color: rgba(255, 255, 255, 0.3); }
.door.quiet .kind { color: #9fb0c4; }
.door.quiet .go { color: #cfd8e4; }

/* ---------------------------------------------------------------- sections */
.section { padding: 62px 0; }
.section.tint { background: var(--paper); }
.section.shell { background: var(--shell); }
@media (max-width: 700px) { .section { padding: 44px 0; } }

.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head.centre { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(23px, 3.6vw, 31px); font-weight: normal;
  margin: 10px 0 0; text-wrap: balance;
}
.section-head p { color: var(--mid); font-size: 15px; margin: 12px 0 0; }

/* ---------------------------------------------------------------- highways */
.highways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .highways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .highways { grid-template-columns: 1fr; } }

.highway {
  display: flex; align-items: center; gap: 13px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 14px 16px; font-size: 15px; font-weight: bold; color: var(--ink);
  transition: border-color 0.16s, transform 0.16s, box-shadow 0.16s;
}
.highway:hover {
  border-color: var(--gold); transform: translateY(-2px);
  box-shadow: 0 8px 20px -14px rgba(18, 35, 63, 0.5);
}
.highway .marker {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.highway .marker .ico { width: 19px; height: 19px; }
.marker.blue { background: #2f6fb0; } .marker.green { background: #2e8b57; }
.marker.orange { background: #d2792c; } .marker.purple { background: #7a4f9e; }
.marker.teal { background: #1f8a8a; } .marker.red { background: #c0392b; }
.marker.amber { background: #c9971f; } .marker.sky { background: #3a8fd0; }
.marker.olive { background: #6f8b34; }

/* ------------------------------------------------------------------
   Pictures. Drawings of the sort of land the firm handles, so the page
   shows the business rather than only describing it.
   ------------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } }

.shot {
  background: var(--paper); border: 1px solid var(--line); overflow: hidden;
  /* Picture on the left, words on the right, so the card is wide and the
     drawing is big enough to read. */
  display: grid; grid-template-columns: 42% 1fr; align-items: stretch;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
@media (max-width: 520px) { .shot { grid-template-columns: 1fr; } }
.shot:hover {
  transform: translateY(-4px); border-color: var(--gold);
  box-shadow: 0 18px 34px -22px rgba(18, 35, 63, 0.6);
}
.shot .frame {
  position: relative; overflow: hidden; background: #eef2f7;
  border-right: 3px solid var(--gold); min-height: 200px;
}
@media (max-width: 520px) {
  .shot .frame { border-right: 0; border-bottom: 3px solid var(--gold); aspect-ratio: 3 / 2; min-height: 0; }
}
.shot .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Just the number, in the corner. A full caption here covered the picture
   and only repeated the heading underneath it. */
.shot .frame .tagline {
  position: absolute; left: 0; top: 0;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.06em;
  padding: 6px 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
}
.shot .say { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.shot h3 { font-size: 18px; margin: 0 0 9px; }
.shot p { margin: 0; font-size: 14.5px; color: var(--mid); }

/* A wide picture used as a band across the page. */
.band {
  position: relative; overflow: hidden; border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.band img { width: 100%; height: 420px; object-fit: cover; object-position: center 45%; display: block; }
@media (max-width: 900px) { .band img { height: 340px; } }
@media (max-width: 700px) { .band img { height: 280px; } }
.band .over {
  position: absolute; inset: 0; display: grid; align-items: center;
  /* Dark on the left where the words sit, clearing towards the right so the
     photograph is still the thing you notice. */
  background: linear-gradient(90deg, rgba(9, 19, 34, 0.92) 0%, rgba(9, 19, 34, 0.72) 42%,
                              rgba(9, 19, 34, 0.28) 72%, rgba(9, 19, 34, 0.12) 100%);
}
@media (max-width: 700px) {
  .band .over {
    background: linear-gradient(180deg, rgba(9, 19, 34, 0.5) 0%, rgba(9, 19, 34, 0.86) 60%);
    align-items: end; padding-bottom: 22px;
  }
}
.band .over .wrap { color: #fff; }
.band .over h2 {
  font-family: var(--serif); font-weight: normal; margin: 8px 0 0;
  font-size: clamp(21px, 3.4vw, 30px); max-width: 22ch;
}
.band .over p { color: #ccd7e5; margin: 12px 0 0; max-width: 46ch; font-size: 15.5px; }
.band .over .btn { margin-top: 22px; }

/* ------------------------------------------------------------------
   The approvals, scrolling across the page. The list is printed twice
   and the track slides exactly half its width, so it loops with no gap.
   ------------------------------------------------------------------ */
.marquee-band {
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0 26px;
}
.marquee-say {
  text-align: center; margin: 0 0 18px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold-deep); font-weight: bold;
}
.marquee {
  overflow: hidden; position: relative;
  /* Room above and below, so a tile that grows on hover is not clipped by
     the edge of this box. */
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  /* One set is five tiles and five gaps. Sliding by exactly that distance
     puts the next set where the last one started, so the loop is seamless.
     A percentage was used before, which slid the track by half its length
     and left the right of a wide screen empty. */
  --set-width: calc((190px + 46px) * 5);
  display: flex; align-items: center; gap: 46px; width: max-content;
  animation: marquee-slide 30s linear infinite;
}
/* The five come in different shapes, one wide, one square, one small. Each
   sits in a tile of the same size so the strip reads as an even row. */
.marquee-track .mark {
  flex: none; width: 190px; height: 96px;
  display: flex; align-items: center; justify-content: center; padding: 10px 16px;
  background: var(--paper); border: 1px solid var(--line-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* A pixel limit, not a percentage. Inside a box like this a percentage
   height has nothing definite to resolve against, and the square logos
   spilled over the edge. */
.marquee-track .mark img {
  max-width: 100%; max-height: 76px; width: auto; height: auto;
  object-fit: contain; display: block;
}
/* No lifting here. On a strip that is already sliding sideways, moving a
   tile as well reads as a glitch, and the clipped edge made it look broken.
   The border and a soft shadow are enough. */
.marquee-track .mark:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 16px -10px rgba(18, 35, 63, 0.55);
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--set-width))); }
}

@media (max-width: 700px) {
  .marquee-track { gap: 30px; --set-width: calc((150px + 30px) * 5); }
  .marquee-track .mark { width: 150px; height: 78px; padding: 8px 12px; }
  .marquee-track .mark img { max-height: 62px; }
}

/* Anyone who has asked for less movement gets a strip they can push
   along themselves instead. */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; mask-image: none; }
  .marquee-track { animation: none; }
}

/* ---------------------------------------------------------------- icons */
.ico { width: 30px; height: 30px; display: block; }
.ico-badge {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--gold-wash); color: var(--navy);
  margin-bottom: 14px; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.promise:hover .ico-badge { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* ---------------------------------------------------------------- promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }

.promise {
  background: var(--paper); border: 1px solid var(--line); padding: 24px 22px;
  border-top: 3px solid var(--navy);
  transition: border-top-color 0.16s, transform 0.16s, box-shadow 0.16s;
}
.promise:hover {
  border-top-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 14px 28px -20px rgba(18, 35, 63, 0.55);
}
.promise .num {
  font-family: var(--serif); font-size: 13px; color: var(--gold-deep); letter-spacing: 0.1em;
}
.promise h3 { font-size: 16.5px; margin: 8px 0 8px; }
.promise p { margin: 0; font-size: 14px; color: var(--mid); }

/* ---------------------------------------------------------------- journey */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 880px) { .journey { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (max-width: 500px) { .journey { grid-template-columns: 1fr; gap: 22px; } }

.leg { position: relative; padding: 0 22px; }
.leg:first-child { padding-left: 0; }
.leg:last-child { padding-right: 0; }
.leg:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; right: 0; width: 1px; height: calc(100% - 30px);
  background: var(--line);
}
@media (max-width: 880px) { .leg::after { display: none; } .leg { padding: 0; } }

.leg .badge {
  width: 44px; height: 44px; border: 2px solid var(--gold); color: var(--navy);
  display: grid; place-items: center; font-family: var(--serif); font-size: 19px;
  margin-bottom: 14px; background: var(--paper);
}
.leg h3 { font-size: 16.5px; margin: 0 0 7px; }
.leg p { margin: 0; font-size: 14px; color: var(--mid); }

/* ---------------------------------------------------------------- questions */
.questions { max-width: 800px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 17px 40px 17px 0; position: relative;
  font-size: 16px; font-weight: bold; color: var(--navy);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 6px; top: 13px;
  font-size: 22px; color: var(--gold-deep); font-weight: normal; transition: transform 0.2s;
}
.qa[open] summary::after { content: "\2212"; }
.qa summary:hover { color: var(--gold-deep); }
.qa summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.qa p { margin: 0 0 18px; color: var(--mid); font-size: 14.5px; max-width: 70ch; }

/* ---------------------------------------------------------------- call to action */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; text-align: center;
}
.cta .wrap { padding-top: 56px; padding-bottom: 56px; }
.cta h2 {
  font-family: var(--serif); font-weight: normal; font-size: 32px; margin: 12px 0 0;
  text-wrap: balance;
}
@media (max-width: 700px) { .cta h2 { font-size: 25px; } }
.cta p { color: #bcc9d9; font-size: 16px; margin: 14px auto 0; max-width: 56ch; }
.cta .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.cta .fine { font-size: 13px; color: #8fa0b6; margin-top: 18px; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); padding: 22px;
  border-left: 3px solid var(--gold);
}
.contact-card h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--mid);
  margin: 0 0 10px;
}
.contact-card .big { font-size: 20px; font-weight: bold; color: var(--navy); }
.contact-card a { color: var(--navy); text-decoration: none; }
.contact-card a:hover { color: var(--gold-deep); }
.contact-card p { margin: 6px 0 0; font-size: 14px; color: var(--mid); }

/* ------------------------------------------------------------------
   Phones. Everything below is about the thumb, not the mouse.
   ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .section { padding: 38px 0; }
  .section-head { margin-bottom: 24px; }

  .doors { gap: 12px; }
  .door { padding: 18px 18px; }
  .door h3 { font-size: 18px; }

  .highways { gap: 10px; }
  .highway { padding: 13px 14px; font-size: 14.5px; }
  .highway .marker { width: 30px; height: 30px; font-size: 13px; }

  .promises { gap: 12px; }
  .promise { padding: 19px 18px; }

  .journey { gap: 20px; }
  .leg .badge { width: 38px; height: 38px; font-size: 17px; margin-bottom: 10px; }

  .qa summary { font-size: 15px; padding: 15px 34px 15px 0; }
  .qa p { font-size: 14px; }

  .cta .wrap { padding-top: 40px; padding-bottom: 40px; }
  .cta .row { flex-direction: column; align-items: stretch; }
  .cta .row .btn { text-align: center; }
  .cta p { font-size: 15px; }

  .contact-card { padding: 18px; }
}

/* Landscape on a phone, where height is the scarce thing. */
@media (max-height: 460px) and (orientation: landscape) {
  .hero .wrap { padding-top: 24px; padding-bottom: 24px; }
  .dock { position: static; }
  body.has-dock { padding-bottom: 0; }
}
