﻿/* The Waterloo Group — site styles.
   Tokens follow the TWG brand kit (tokens.css), navy option. */

:root {
  --brand: #1C2D4F;
  --brand-deep: #142240;
  --brand-tint: #DDE2EB;
  --ink: #0E1628;
  --muted: #545C6B;
  --paper: #F6F2EA;
  --paper-alt: #ECE5D8;
  --hairline: #CFC6B4;
  --gilt: #9A7A43;
  --gilt-text: #7E6232;
  --gilt-light: #C9AE78;
  --on-brand: #F6F2EA;
  --on-brand-muted: #B7BDC9;
  --on-brand-rule: rgba(246, 242, 234, 0.22);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 112px;

  --font-serif: "EB Garamond", Garamond, "Adobe Garamond Pro", Georgia, serif;
  --wrap: 1200px;
  --gutter: 40px;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--brand);
  color: var(--on-brand);
  text-decoration: none;
}
.skip:focus { top: var(--space-3); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type */

.h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.12;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.005em;
}

.lede {
  font-size: 21px;
  line-height: 1.5;
}

.caption {
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
  color: var(--muted);
}

.figure {
  font-size: 44px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  color: var(--gilt);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gilt-text);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gilt);
  margin-bottom: var(--space-5);
}
.eyebrow--light {
  color: var(--gilt-light);
  border-bottom-color: var(--gilt-light);
}

/* Masthead */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 96px;
}

.masthead__mark { display: block; padding: var(--space-3) 0; }
.masthead__mark img {
  width: 320px;
  height: auto;
}

.masthead__nav {
  display: flex;
  gap: var(--space-5);
}

.masthead__nav a {
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-1) 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.masthead__nav a:hover {
  color: var(--brand);
  border-bottom-color: var(--gilt);
}

/* Hero: the one full-bleed statement */

.hero {
  background: var(--brand);
  color: var(--on-brand);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  min-height: min(calc(100svh - 97px), 860px);
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}

.hero__eyebrow { align-self: flex-start; }

.hero__title {
  margin-top: auto;
  max-width: 15ch;
  text-wrap: balance;
  font-size: clamp(46px, 7.6vw, 108px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--on-brand);
}

.hero__lede {
  max-width: 30em;
  margin-top: var(--space-5);
  margin-left: auto;
  font-size: 21px;
  line-height: 1.5;
  color: var(--on-brand-muted);
}

.hero__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--on-brand-rule);
}

.hero__est {
  font-style: italic;
  color: var(--gilt-light);
}

.hero__cities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-brand);
}

/* Load sequence — the only unprompted motion on the page */

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__title,
  .hero__lede,
  .hero__base {
    opacity: 0;
    animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero__eyebrow { animation-delay: 0.1s; }
  .hero__title   { animation-delay: 0.25s; }
  .hero__lede    { animation-delay: 0.6s; }
  .hero__base    { animation-delay: 0.85s; }

  .hero__base { position: relative; border-top-color: transparent; }
  .hero__base::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gilt-light);
    transform-origin: left center;
    transform: scaleX(0);
    animation: draw 1.6s cubic-bezier(0.6, 0, 0.2, 1) 1s forwards;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw {
  to { transform: scaleX(1); }
}

/* Sections */

.section {
  padding: var(--space-7) 0;
}
.section + .section { border-top: 1px solid var(--hairline); }
.section--alt { background: var(--paper-alt); }

.section__title {
  max-width: 22ch;
  margin-bottom: var(--space-6);
}

/* The Group */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-6);
  align-items: start;
}

.split__head { max-width: 16ch; text-wrap: balance; }

.split__body {
  max-width: 36em;
}
.split__body p + p { margin-top: var(--space-4); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-7);
  border-top: 1px solid var(--hairline);
}

.facts__item {
  padding: var(--space-4) var(--space-5) 0 0;
}
.facts__item + .facts__item {
  padding-left: var(--space-5);
  border-left: 1px solid var(--hairline);
}

.facts dt {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.facts dd {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--brand);
  max-width: 16em;
}
.facts dd.figure {
  font-size: 44px;
  font-weight: 400;
  color: var(--gilt);
}

/* Approach: invest, then build */

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gilt);
}

.pillar {
  padding: var(--space-5) var(--space-6) 0 0;
}
.pillar + .pillar {
  padding-left: var(--space-6);
  padding-right: 0;
  border-left: 1px solid var(--hairline);
}

.pillar__title {
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.pillar__text {
  max-width: 30em;
  margin-top: var(--space-4);
  font-size: 19px;
  line-height: 1.6;
}

/* Focus */

.themes { border-top: 1px solid var(--hairline); }

.theme {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-6);
  padding: var(--space-5) 0 var(--space-6);
  border-bottom: 1px solid var(--hairline);
}

.theme__title {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.12;
  font-weight: 400;
  color: var(--brand);
}

.theme__text {
  max-width: 36em;
  padding-top: var(--space-2);
}

/* Contact */

.contact {
  background: var(--brand-deep);
  color: var(--on-brand);
}

.contact__inner {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.contact__title {
  max-width: 18ch;
  color: var(--on-brand);
}

.contact__text {
  max-width: 34em;
  margin-top: var(--space-4);
  font-size: 21px;
  line-height: 1.5;
  color: var(--on-brand-muted);
}

.contact__email {
  display: inline-block;
  margin-top: var(--space-6);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--gilt-light);
  text-decoration: none;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--on-brand-rule);
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease;
}
.contact__email:hover { border-bottom-color: var(--gilt-light); }

/* Footer */

.footer {
  background: var(--paper);
  padding: var(--space-6) 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
}

.footer__mark {
  width: 96px;
  height: auto;
  margin-top: 2px;
}

.footer__text { max-width: 44em; }

.footer__legal {
  margin-bottom: var(--space-2);
  color: var(--ink);
}

/* Tablet */

@media (max-width: 960px) {
  :root { --gutter: 32px; --space-7: 88px; }

  .split,
  .theme {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .split__head { max-width: 18ch; }
  .hero__lede { margin-left: 0; max-width: 36em; }

  .masthead__mark img { width: 260px; }
  .masthead__nav { gap: var(--space-4); }
}

/* Phone */

@media (max-width: 720px) {
  :root { --gutter: 16px; --space-7: 72px; }

  body { font-size: 17px; }

  .masthead__inner { min-height: 72px; }
  .masthead__mark img { width: 220px; }

  .pillars { grid-template-columns: 1fr; }
  .pillar,
  .pillar + .pillar {
    padding: var(--space-5) 0;
    border-left: 0;
  }
  .pillar + .pillar { border-top: 1px solid var(--hairline); }
  .pillar__text { font-size: 17px; }
  .masthead__nav a:not(.masthead__contact) { display: none; }

  .hero__inner {
    min-height: calc(100svh - 73px);
    padding-top: var(--space-5);
  }
  .hero__lede,
  .lede,
  .contact__text { font-size: 19px; }

  .hero__base { flex-direction: column; }
  .hero__cities {
    flex-direction: column;
    gap: var(--space-2);
  }

  .facts { grid-template-columns: 1fr; }

  .facts__item {
    padding: var(--space-4) 0;
  }
  .facts dd { max-width: none; }
  .facts__item + .facts__item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .footer__mark { width: 80px; }
}
