/* Erne Partners — landing page
   Palette: Deep Navy #0B1F33 / River Blue #2B5C7D / Slate #6D7B88 /
            Irish Moss #5B6E54 / Mist #F2F5F7 / Warm Stone #D9D4CB
   Type: Playfair Display (headings) + Inter (body/nav)             */

:root {
  --navy: #0B1F33;
  --river: #2B5C7D;
  --slate: #6D7B88;
  --moss: #5B6E54;
  --moss-light: #8FA383;
  --icon-blue: #7FB6DE;
  --mist: #F2F5F7;
  --stone: #D9D4CB;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html { background: var(--navy); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

/* on tall screens the hero photo absorbs the leftover height */
.hero { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--moss-light);
  outline-offset: 3px;
}

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ---------- Brand lockup ---------- */

.brand {
  --lock: 1;
  display: flex;
  align-items: center;
  gap: calc(16px * var(--lock));
  flex-shrink: 0;
}

.brand-icon {
  height: calc(49px * var(--lock));
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text .line1 {
  font-family: var(--font-body);
  font-size: calc(30px * var(--lock));
  font-weight: 400;
  letter-spacing: 0.3000em;
  line-height: 1.05;
  color: var(--mist);
  white-space: nowrap;
}

.brand-text .line2 {
  font-family: var(--font-body);
  font-size: calc(12.5px * var(--lock));
  font-weight: 300;
  letter-spacing: 0.4714em;
  line-height: 1.4;
  color: var(--mist);
  white-space: nowrap;
}

.brand-text .line1 { margin-right: -0.3000em; }
.brand-text .line2 { margin-right: -0.4714em; padding-left: calc(1.5px * var(--lock)); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 26px 0 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.nav a:hover { border-color: var(--moss-light); }

.nav .nav-cta {
  border: 1.5px solid rgba(242,245,247,0.95);
  border-radius: 2px;
  padding: 13px 26px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav .nav-cta:hover {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--navy);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding: 118px 0 44px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11,31,51,0.78) 0%, rgba(11,31,51,0.42) 34%, rgba(11,31,51,0.04) 58%, rgba(11,31,51,0) 72%),
    linear-gradient(to bottom, rgba(11,31,51,0.42) 0%, rgba(11,31,51,0) 16%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner { max-width: 560px; }

.hero .eyebrow {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss-light);
  margin: 0 0 14px;
}

.eyebrow-rule {
  width: 44px;
  height: 1px;
  background: var(--moss-light);
  margin-bottom: 30px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.14;
  letter-spacing: -0.005em;
  color: var(--mist);
  margin: 0 0 26px;
}

.hero h1 .dot { color: var(--moss-light); }

.hero p.lede {
  font-size: 17px;
  line-height: 1.62;
  color: rgba(242,245,247,0.92);
  max-width: 400px;
  margin: 0 0 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
  border: 1px solid rgba(242,245,247,0.55);
  color: var(--mist);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--navy);
}

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------- Pillar band ---------- */

.band {
  background: #0C2136;
  padding: 28px 0 30px;
}

.band .wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pillar {
  padding: 0 26px;
  text-align: center;
  border-right: 1px solid rgba(242,245,247,0.16);
}

.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: 0; }

.pillar .icon {
  height: 52px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-blue);
}

.pillar .icon svg { width: 50px; height: 50px; }

.pillar h3 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 12px;
}

.pillar p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242,245,247,0.72);
  margin: 0;
}

.belief-col {
  border-left: 1px solid rgba(242,245,247,0.16);
  padding-left: 44px;
}

.belief-col .eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss-light);
  margin: 0 0 16px;
}

.belief-col blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.42;
  color: var(--mist);
  margin: 0 0 26px;
}

.belief-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--moss-light);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.belief-link:hover { color: var(--moss-light); }
.belief-link svg { width: 16px; height: 16px; }

/* ---------- Story ---------- */

.story {
  background: var(--mist);
  padding: 108px 0;
}

.story .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.story .eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--river);
  margin: 0 0 18px;
}

.story h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(25px, 2.6vw, 33px);
  line-height: 1.42;
  color: var(--navy);
  margin: 0;
}

.story .body p {
  font-size: 16px;
  line-height: 1.78;
  color: #33414F;
  margin: 0 0 18px;
}

.story .body p:last-child { margin-bottom: 0; }

/* ---------- Closing ---------- */

.closing {
  background: var(--navy);
  padding: 116px 0;
  text-align: center;
}

.closing img {
  height: 34px;
  width: auto;
  margin: 0 auto 30px;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--mist);
  margin: 0 0 16px;
}

.closing p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(242,245,247,0.82);
  max-width: 440px;
  margin: 0 auto 38px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(242,245,247,0.12);
  padding: 26px 0 34px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer, .site-footer a {
  font-size: 12.5px;
  color: #B7AFA0;
}

.site-footer a:hover { color: var(--stone); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .wrap { padding: 0 36px; }
  .nav { gap: 26px; }
  .band .wrap { grid-template-columns: 1fr; gap: 40px; }
  .belief-col {
    border-left: 0;
    border-top: 1px solid rgba(242,245,247,0.16);
    padding-left: 0;
    padding-top: 32px;
  }
}

@media (max-width: 900px) {
  .brand { --lock: 0.74; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { padding: 11px 18px; font-size: 11.5px; }
  .hero-bg::after {
    background:
      linear-gradient(to bottom, rgba(11,31,51,0.86) 0%, rgba(11,31,51,0.62) 46%, rgba(11,31,51,0.30) 72%, rgba(11,31,51,0.12) 100%);
  }
  .hero { align-items: flex-start; padding-top: 132px; padding-bottom: 56px; }
  .hero { min-height: 78vh; }
  .story .wrap { grid-template-columns: 1fr; gap: 30px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .pillar:nth-child(2) { border-right: 0; }
  .story, .closing { padding: 76px 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .brand { --lock: 0.6; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; padding: 0; }
  .hero p.lede { max-width: 100%; }
}

/* ---------- Interior pages ---------- */

.site-header--solid {
  position: relative;
  background: var(--navy);
  padding: 22px 0;
}

.page-head {
  background: var(--navy);
  padding: 26px 0 28px;
  border-top: 1px solid rgba(242,245,247,0.12);
}

.page-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss-light);
  margin: 0 0 16px;
}

.page-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.16;
  color: var(--mist);
  margin: 0;
  max-width: 780px;
}

.page-body {
  background: var(--mist);
  padding: 92px 0 100px;
}

.page-body .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

@media (min-width: 901px) {
  .page-body .wrap > :first-child {
    position: sticky;
    top: 48px;
  }
}

.page-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(25px, 2.6vw, 33px);
  line-height: 1.42;
  color: var(--navy);
  margin: 0;
}

.page-body .eyebrow {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--river);
  margin: 0 0 18px;
}

/* offset the right column by the height of the left eyebrow + its margin,
   so the first line of body copy sits level with the first line of the quote */
@media (min-width: 901px) {
  .page-body .wrap > :last-child { padding-top: 30px; }
}

.page-body p {
  font-size: 16px;
  line-height: 1.78;
  color: #33414F;
  margin: 0 0 18px;
}

.page-body p:last-child { margin-bottom: 0; }

.page-body h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 38px 0 12px;
}

.page-body h3:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .page-body .wrap { grid-template-columns: 1fr; gap: 34px; }
  .page-head { padding: 22px 0 24px; }
  .page-body { padding: 62px 0 70px; }
}

/* Short laptop screens — compress the hero so the pillar band stays above the fold */
@media (min-width: 901px) and (max-height: 830px) {
  .hero {
    min-height: 0;
    padding: 96px 0 28px;
  }
  .hero h1 { font-size: clamp(34px, 3.5vw, 50px); margin-bottom: 20px; }
  .hero p.lede { font-size: 15.5px; margin-bottom: 24px; }
  .eyebrow-rule { margin-bottom: 18px; }
  .band { padding: 20px 0 22px; }
  .pillar .icon { height: 46px; margin-bottom: 12px; }
  .pillar .icon svg { width: 44px; height: 44px; }
  .belief-col blockquote { font-size: 19px; margin-bottom: 20px; }
}
