/* Barlow — SIL Open Font License 1.1, see /fonts/OFL.txt */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-condensed-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-condensed-500-latin.woff2") format("woff2");
}

:root {
  --bg: #f2f2f3;
  --ink: #1d1f20;
  --ink-2: #424244;
  --muted: #5d5d60;
  --rule: #98989b;
  --grid: rgba(29, 31, 32, 0.06);
  --frame: rgba(29, 31, 32, 0.28);
  --condensed: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: #d4d4d7; }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
}

.site-header,
.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 28px 40px;
}

.site-header {
  font-family: var(--condensed);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-header a { color: var(--muted); }
.site-header a:hover { color: var(--ink); }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 40px;
}

/* Logo mark: framed mountain with corner crosshairs */
.mark {
  position: relative;
  width: min(300px, 100%);
  border: 1px solid var(--frame);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 26px 28px 22px;
}
.mark svg { display: block; width: 100%; height: auto; }
.mark .corner {
  position: absolute;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--muted), var(--muted)) 5px 0 / 1px 100% no-repeat,
    linear-gradient(var(--muted), var(--muted)) 0 5px / 100% 1px no-repeat;
}
.mark .tl { top: -6px; left: -6px; }
.mark .tr { top: -6px; right: -6px; }
.mark .bl { bottom: -6px; left: -6px; }
.mark .br { bottom: -6px; right: -6px; }

.intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  max-width: 720px;
}

h1 {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--condensed);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.status {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.status::before,
.status::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--rule);
}

.site-footer {
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* Multi-section pages (home, legal) */
.site {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* clip, not hidden: hidden would make .site a scroll container and break the sticky header */
  overflow-x: clip;
}
.site > main { position: relative; flex: 1; }

/* Header stays pinned while scrolling */
.site .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 242, 243, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--frame);
}
.site [id] { scroll-margin-top: 88px; }
.site .hero { padding: 64px 24px 72px; }

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink) !important; letter-spacing: 0.18em; }
.brand img { display: block; width: 62px; height: auto; }
.brand:hover { text-decoration: none; }
[aria-current="page"] { color: var(--ink); }

/* Hero sits over the landscape photo; a translucent wash + grid keep the text legible */
.site .hero {
  min-height: min(760px, calc(100svh - 74px));
  border-bottom: 1px solid var(--frame);
  background: #c9b48a;
  isolation: isolate;
}
.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-photo img { object-fit: cover; object-position: 50% 60%; }
.site .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(242, 242, 243, 0.5), rgba(242, 242, 243, 0) 70%),
    linear-gradient(rgba(242, 242, 243, 0.5), rgba(242, 242, 243, 0.3));
  background-size: 64px 64px, 64px 64px, auto, auto;
  background-position: center center;
}
.hero .lede { color: var(--ink-2); }
.photo-credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  margin: 0;
  padding: 3px 8px;
  background: rgba(29, 31, 32, 0.55);
  color: #f2f2f3;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.photo-credit a { color: inherit; }
.hero + .section { border-top: 0; }

.section {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 72px 40px;
  border-top: 1px solid var(--frame);
}
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--condensed);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
h2, h3 {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
}
.section > h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  max-width: 22ch;
  text-wrap: balance;
}
.prose { max-width: 64ch; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose p { margin: 20px 0 0; }
.prose h2 { margin-top: 40px; font-size: 22px; letter-spacing: 0.02em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ink-2);
  background: rgba(29, 31, 32, 0.04);
  font-size: 16px;
}
.sms-box {
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid var(--frame);
  border-left: 3px solid var(--ink);
  background: rgba(29, 31, 32, 0.04);
  font-size: 16px;
}
.sms-box h3 { margin: 0; font-size: 18px; letter-spacing: 0.02em; }
.sms-box p { margin-top: 8px; }
.sms-box .actions { margin-top: 16px; align-items: flex-start; }
.prose .button { text-decoration: none; }
.contact-note { margin-left: 10px; font-size: 14px; color: var(--muted); }
.contact-note a { text-decoration: underline; text-underline-offset: 3px; }

.leader { margin: 32px 0 0; }
.leader-name {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}
.leader-title {
  margin: 6px 0 0;
  font-family: var(--condensed);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.leader + .prose > p:first-child { margin-top: 16px; }

.services {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--frame);
  border: 1px solid var(--frame);
}
.services li { background: var(--bg); padding: 24px; }
.services h3 { font-size: 19px; letter-spacing: 0.04em; }
.services p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.holdings {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.holding {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--frame);
  background: var(--bg);
  color: var(--ink-2);
  transition: border-color 0.15s ease;
}
.holding:hover { border-color: var(--ink); text-decoration: none; }
.holding-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin: -28px -28px 14px;
  border-bottom: 1px solid var(--frame);
  overflow: hidden;
}
.holding-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.holding-logo--ethos { background: #ecebe7; }
.holding-logo--hbc { background: #2f6c91; }
.holding-sector {
  font-family: var(--condensed);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.holding-name {
  font-family: var(--condensed);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}
.holding-desc { font-size: 16px; line-height: 1.5; flex: 1; }
.holding-link {
  margin-top: 8px;
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.holding:hover .holding-link { text-decoration: underline; text-underline-offset: 3px; }

.contact-list { margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list div { display: flex; gap: 20px; align-items: baseline; }
.contact-list dt {
  min-width: 64px;
  font-family: var(--condensed);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin: 0; font-size: 18px; }

.legal { border-top: 0; padding-top: 48px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); }
.updated { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 600px) {
  .site-header,
  .site-footer { padding: 20px 24px; }
  .site-footer { flex-direction: column; justify-content: center; text-align: center; }
  .site-footer nav { justify-content: center; }
  .site-header nav { gap: 8px 18px; }
  .site .site-header { padding: 16px; }
  .site [id] { scroll-margin-top: 64px; }
  .hero { gap: 32px; }
  .site .hero { padding: 48px 16px 64px; }
  .section { padding: 56px 16px; }
  .holding { padding: 22px; }
  .holding-logo { margin: -22px -22px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .holding { transition: none; }
}
