/* Sea Level Capital — institutional / Swiss-minimal
   Navy + gold, IBM Plex Serif display over IBM Plex Sans body. */

:root {
  --navy-900: #0b1220;
  --navy-800: #0f172a;
  --navy-700: #16233d;
  --navy-600: #1e3a8a;
  --gold: #ca8a04;
  --gold-light: #d9a520;
  --paper: #f8fafc;
  --paper-warm: #f2f4f7;
  --ink: #020617;
  --ink-muted: #475569;
  --rule: #d7dce3;
  --rule-dark: rgba(255, 255, 255, 0.16);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  max-width: 68ch;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* ---------- eyebrow / section headings ---------- */

.eyebrow {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 6rem;
}

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-muted);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.brand svg {
  flex: none;
}

.brand-name {
  font-family: "IBM Plex Serif", serif;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

/* ---------- leadership ---------- */

.leadership {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.leader-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: grayscale(1);
  transition: filter 250ms var(--ease);
}

.leader-photo:hover {
  filter: grayscale(0);
}

.leader-name {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin-top: 0.25rem;
}

.leader-role {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  margin: 0.375rem 0 1.25rem;
}

.leader-body > p + p {
  margin-top: 1.125rem;
}

.leader-body p:not(.leader-role) {
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .leadership {
    grid-template-columns: minmax(0, 1fr);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 200ms var(--ease);
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
  cursor: pointer;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  color: #fff;
  padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  /* horizon motif: a still sea-level rule closing the hero */
  border-bottom: 1px solid rgba(202, 138, 4, 0.42);
  /* Flathead Lake — the firm's own water, not stock ocean */
  background-color: var(--navy-900);
  background-image: url("img/hero-flathead-sm.jpg");
  background-size: cover;
  background-position: center 42%;
}

@media (min-width: 720px) {
  .hero {
    background-image: url("img/hero-flathead.jpg");
  }
}

/* Overlay carries the type contrast: the photo is atmosphere, not subject. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      100deg,
      rgba(11, 18, 32, 0.95) 0%,
      rgba(11, 18, 32, 0.9) 42%,
      rgba(11, 18, 32, 0.66) 100%
    ),
    radial-gradient(70% 55% at 78% 18%, rgba(30, 58, 138, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
}

.hero h1 {
  font-size: clamp(2.125rem, 5vw, 3.875rem);
  max-width: 20ch;
  color: #fff;
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  color: rgba(255, 255, 255, 0.76);
  max-width: 62ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 52px;
  padding: 0 1.75rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease),
    color 220ms var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-dark {
  background: var(--navy-800);
  color: #fff;
}

.btn-dark:hover {
  background: var(--navy-700);
}

/* intro strip under hero */

.strip {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid var(--rule-dark);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.strip p {
  max-width: 90ch;
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.75;
}

.strip strong {
  color: #fff;
  font-weight: 500;
}

/* ---------- generic section ---------- */

.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--rule);
}

.section-alt {
  background: var(--paper-warm);
}

.section-dark {
  background: var(--navy-900);
  color: #fff;
  border-bottom: none;
}

/* Contact sits on a still-water plate; overlay keeps form fields legible. */
#contact {
  position: relative;
  background-color: var(--navy-900);
  background-image: linear-gradient(
      rgba(11, 18, 32, 0.93) 0%,
      rgba(11, 18, 32, 0.89) 55%,
      rgba(11, 18, 32, 0.96) 100%
    ),
    url("img/contact-water.jpg");
  background-size: auto, cover;
  background-position: center, center;
  border-top: 1px solid rgba(202, 138, 4, 0.42);
}

.section-dark .eyebrow::after {
  background: var(--rule-dark);
}

.section-dark .lede {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split-body > * + * {
  margin-top: 1.5rem;
}

/* ---------- services ---------- */

.services {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--rule);
}

.service {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.service-num {
  font-family: "IBM Plex Serif", serif;
  font-size: 1.125rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding-top: 0.35rem;
}

.service h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  margin-bottom: 0.875rem;
}

.service p {
  color: var(--ink-muted);
}

/* ---------- focus areas ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy-800);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.card h3 {
  font-size: 1.3125rem;
  margin-bottom: 0.875rem;
}

.card p {
  color: var(--ink-muted);
  font-size: 1rem;
}

.card-icon {
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

/* ---------- why us ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule-dark);
}

.reason {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--rule-dark);
  border-right: 1px solid var(--rule-dark);
}

.reason h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.reason p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9875rem;
}

/* ---------- who we work with ---------- */

.list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.list li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
}

.list svg {
  color: var(--gold);
  margin-top: 0.45rem;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.address a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

.address a:hover {
  text-decoration-color: var(--gold);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact-block + .contact-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-dark);
}

.form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.form-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.hp {
  position: absolute;
  left: -9999px;
}

/* ---------- footer ---------- */

.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--rule-dark);
  padding-block: 2.5rem;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-tagline {
  font-family: "IBM Plex Serif", serif;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.footer-tagline em {
  font-style: normal;
  color: var(--gold);
}

.footer-credit {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.62);
  text-underline-offset: 3px;
}

.footer-credit a:hover {
  color: var(--gold);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--rule-dark);
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .nav-links.open li {
    border-top: 1px solid var(--rule-dark);
  }

  .nav-links.open a {
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  .nav-links.open .nav-cta {
    margin-top: 1rem;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .reason {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .service {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .service-num {
    padding-top: 0;
  }

  .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
