/* ───────────────────────────────────────────────────────────────
   Fund Business — one screen, one form, nothing spare.
   ─────────────────────────────────────────────────────────────── */

:root {
  --paper:   #F7F5F2;
  --card:    #FFFFFF;
  --ink:     #17191A;
  --muted:   #6D716F;
  --faint:   #9A9E9B;
  --line:    #E3DFD8;
  --line-2:  #D2CDC3;
  --brand:   #14344B;
  --brand-lt:#1E4A69;
  --wash:    #F0EEE8;
  --bad:     #A2402C;

  --serif: "Newsreader", Georgia, serif;
  --sans:  "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gut:   clamp(1.25rem, 4vw, 3.5rem);
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* `.grid-2` sets display, which would otherwise beat the UA rule for [hidden] */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand); color: var(--paper); }
:focus-visible { outline: 2px solid var(--brand-lt); outline-offset: 2px; border-radius: 2px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── header ─────────────────────────────────────────────────── */
.head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem var(--gut);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 0.62rem; color: var(--brand); }
.logo { fill: currentColor; flex: none; }
.logo path { transition: opacity 0.35s var(--ease); }
.wordmark:hover .logo path { opacity: 1; }
.wordmark span {
  font-family: var(--serif); font-size: 1.16rem; color: var(--ink);
  letter-spacing: -0.005em; white-space: nowrap;
}
.wordmark span b { font-weight: 400; color: var(--brand); }
.head__contact { display: flex; align-items: center; gap: 0.9rem; font-size: 0.86rem; color: var(--muted); }
.head__contact a { transition: color 0.2s; }
.head__contact a:hover { color: var(--brand); }

/* ── page grid ──────────────────────────────────────────────── */
.page {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.75rem) var(--gut) clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* ── intro column ───────────────────────────────────────────── */
.intro { position: sticky; top: 2.5rem; animation: rise 0.7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.intro h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.025em;
}
.intro__lede {
  margin-top: 1.25rem; color: var(--muted);
  font-size: 0.96rem; max-width: 42ch;
}

.facilities {
  list-style: none; margin: 2.25rem 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.facilities li {
  display: grid; grid-template-columns: 10.75rem minmax(0, 1fr); gap: 1rem;
  padding: 0.72rem 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.facilities b { font-weight: 500; font-size: 0.92rem; }
.facilities span { color: var(--muted); font-size: 0.86rem; }

.direct { margin-top: 2.25rem; }
.direct h2 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--faint); font-weight: 500; margin-bottom: 0.9rem;
}
.direct__line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  transition: border-color 0.25s;
}
.direct__line:hover { border-color: var(--brand); }
.direct__line span { color: var(--muted); font-size: 0.86rem; }
.direct__line b {
  font-weight: 500; font-size: 0.92rem;
  transition: color 0.2s;
}
.direct__line:hover b { color: var(--brand); }
.direct__note { margin-top: 1rem; font-size: 0.8rem; color: var(--faint); max-width: 34ch; }

/* ── form card ──────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: 0 1px 2px rgba(23, 25, 26, 0.03), 0 12px 30px -22px rgba(23, 25, 26, 0.22);
  animation: rise 0.7s var(--ease) 0.08s both;
}

.block { padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.block--last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.block__h {
  display: flex; align-items: baseline; gap: 0.65rem;
  font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-bottom: 1rem;
  font-family: var(--sans);
}
.block__h i {
  font-style: normal; font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--brand); font-variant-numeric: tabular-nums;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.9rem; }

.f { display: block; margin-top: 0.9rem; min-width: 0; }
.f:first-child, .grid-2 > .f { margin-top: 0.9rem; }
.block__h + .f, .block__h + .grid-2 > .f { margin-top: 0; }
.f > span {
  display: block; font-size: 0.79rem; color: var(--muted); margin-bottom: 0.35rem;
}
.f > span i { font-style: normal; color: var(--brand); }

.f input, .f select, .f textarea {
  width: 100%; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: 0.6rem 0.72rem; font-size: 0.92rem;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.f textarea { resize: vertical; font-family: var(--sans); line-height: 1.55; }
.f input::placeholder, .f textarea::placeholder { color: #B3B7B3; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: #BDB8AD; }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none; border-color: var(--brand); background: var(--card);
  box-shadow: 0 0 0 3px rgba(20, 52, 75, 0.08);
}
.f select {
  appearance: none; cursor: pointer; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1.2l4.5 4.5L10 1.2' stroke='%236D716F' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}
.f.is-bad input, .f.is-bad select { border-color: var(--bad); }

.money { position: relative; }
.money > i {
  position: absolute; left: 0.72rem; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 0.9rem; color: var(--faint); pointer-events: none;
}
.money > input { padding-left: 1.65rem; }
.money--suffix > i { left: auto; right: 0.72rem; font-size: 0.82rem; }
.money--suffix > input { padding-left: 0.72rem; padding-right: 4.1rem; }

/* ── business / property switch ─────────────────────────────── */
.track {
  border: 0; margin: 0 0 1.15rem; padding: 0; min-width: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem;
}
.track label { position: relative; cursor: pointer; display: block; }
.track input {
  position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0;
  margin: 0; cursor: pointer;
}
.track span {
  display: block; padding: 0.68rem 0.8rem;
  border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper);
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s;
}
.track b { display: block; font-weight: 500; font-size: 0.88rem; }
.track em {
  display: block; font-style: normal; font-size: 0.75rem;
  color: var(--faint); margin-top: 0.1rem; transition: color 0.18s;
}
.track label:hover span { border-color: #BDB8AD; }
.track input:checked + span {
  background: var(--brand); border-color: var(--brand); color: var(--paper);
  box-shadow: 0 1px 2px rgba(20, 52, 75, 0.18);
}
.track input:checked + span em { color: rgba(247, 245, 242, 0.72); }
.track input:focus-visible + span { outline: 2px solid var(--brand-lt); outline-offset: 2px; }

/* facility pills */
.pills { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills legend {
  padding: 0; font-size: 0.79rem; color: var(--muted); margin-bottom: 0.35rem;
}
.pills legend i { font-style: normal; color: var(--brand); }
.pills__set { animation: fade 0.28s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pills label {
  display: inline-block; cursor: pointer; position: relative;
  margin: 0.25rem 0.4rem 0 0;
}
.pills input {
  position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0;
  margin: 0; cursor: pointer;
}
.pills span {
  display: block; padding: 0.48rem 0.85rem; font-size: 0.86rem;
  border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.pills label:hover span { border-color: #BDB8AD; }
.pills input:checked + span {
  background: var(--brand); border-color: var(--brand); color: var(--paper);
}
.pills input:focus-visible + span { outline: 2px solid var(--brand-lt); outline-offset: 2px; }

.e { display: block; font-style: normal; font-size: 0.76rem; color: var(--bad); margin-top: 0.3rem; }
.e--form { margin-top: 0.9rem; }
.e:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* submit */
.send { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
#submit-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--brand); color: var(--paper);
  border: 1px solid var(--brand); border-radius: 2px;
  padding: 0.72rem 1.5rem; font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
#submit-btn:hover { background: var(--brand-lt); }
#submit-btn:active { transform: translateY(1px); }
#submit-btn.is-busy { pointer-events: none; opacity: 0.7; }
.btn__spin {
  display: none; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid rgba(247, 245, 242, 0.35); border-top-color: var(--paper);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#submit-btn.is-busy .btn__spin { display: block; }
.send__note { font-size: 0.78rem; color: var(--faint); max-width: 28ch; }

/* done */
.done { color: var(--brand); animation: rise 0.5s var(--ease) both; padding: 0.5rem 0 1rem; }
.done h2 {
  font-family: var(--serif); font-weight: 400; font-size: 1.75rem;
  color: var(--ink); margin: 1rem 0 0.6rem;
}
.done p { color: var(--muted); font-size: 0.92rem; }
.done b { color: var(--ink); font-weight: 500; letter-spacing: 0.02em; }
.done__alt { margin-top: 0.8rem !important; font-size: 0.85rem !important; }
.done__alt a { color: var(--brand); border-bottom: 1px solid var(--line-2); }

/* ── footer ─────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem var(--gut) 2.25rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem 3rem; flex-wrap: wrap;
}
.foot p { font-size: 0.75rem; color: var(--faint); line-height: 1.55; max-width: 78ch; }
.foot span { font-size: 0.75rem; color: var(--faint); white-space: nowrap; }

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 940px) {
  .page { grid-template-columns: 1fr; gap: 2.25rem; }
  .intro { position: static; }
  .intro__lede { max-width: none; }
}

/* On short viewports the intro is taller than the screen — pinning it would clip it. */
@media (max-height: 780px) {
  .intro { position: static; }
}

@media (max-width: 560px) {
  .head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .head__contact { font-size: 0.82rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .facilities li { grid-template-columns: 1fr; gap: 0.1rem; }
  .card { padding: 1.25rem 1.1rem; }
  .track { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
