/* Tend Advisors. Framed horizon spread: a thin cerulean frame round the
   viewport, fog ground, wide two-column spreads, light display type. */

:root {
  --cerulean: #0B5C8F;
  --cerulean-deep: #084A73;
  --apricot: #F3A469;
  --fog: #EEF2F4;
  --shell: #E2EAEE;
  --ink: #16222B;
  --muted: #4A5963;
  --rule: #B9C9D3;
  --white: #FFFFFF;
  --display: "Epilogue", "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(22px, 5vw, 72px);
  --inset: 10px;
  --max: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--cerulean); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--cerulean-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--cerulean);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(243, 164, 105, 0.55);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 0.4em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--cerulean); color: var(--white); padding: 10px 16px;
}
.skip:focus { top: 16px; }

/* The frame */
.frame {
  position: fixed; inset: var(--inset);
  border: 1px solid var(--cerulean);
  pointer-events: none; z-index: 40;
}

/* Top */
.top-in {
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.mark { width: 30px; height: 30px; flex: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: var(--cerulean); }
.nav a[aria-current="page"] { color: var(--cerulean); text-decoration: underline; text-underline-offset: 0.5em; }
.nav-cta a {
  border: 1px solid var(--cerulean); color: var(--cerulean); padding: 0 18px; margin-left: 8px;
}
.nav-cta a:hover, .nav-cta a[aria-current="page"] { background: var(--cerulean); color: var(--white); text-decoration: none; }
.menu {
  display: none; min-height: 44px; min-width: 64px; padding: 0 14px;
  background: transparent; border: 1px solid var(--cerulean); color: var(--cerulean);
  font: 600 0.95rem var(--text); cursor: pointer;
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section.tight { padding-top: 0; }
.band { background: var(--shell); }
.spread { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.spread > * { min-width: 0; }
.spread.wide-first { grid-template-columns: 7fr 5fr; }
.head-col h2, .head-col h1 { padding-bottom: 0.45em; border-bottom: 1px solid var(--cerulean); }
.kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink); }
.muted { color: var(--muted); }
.measure { max-width: 40rem; }
.hl { background: linear-gradient(transparent 62%, rgba(243, 164, 105, 0.75) 62%); padding: 0 0.1em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 24px; background: var(--cerulean); color: var(--white);
  border: 1px solid var(--cerulean); text-decoration: none; font-weight: 600; font-family: var(--text);
  font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--cerulean-deep); border-color: var(--cerulean-deep); color: var(--white); text-decoration: none; }
.btn.line { background: transparent; color: var(--cerulean); }
.btn.line:hover { background: var(--cerulean); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero: the name on the horizon */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 80px); }
.hero h1 { max-width: 15em; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.horizon { margin: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.hname {
  font-family: var(--display); font-weight: 300; letter-spacing: -0.045em;
  font-size: clamp(3rem, 11.5vw, 9.5rem); line-height: 0.8; margin: 0;
  color: var(--cerulean); white-space: nowrap; isolation: isolate;
}
.hname .dot { position: relative; color: var(--ink); }
.hname .sunbox {
  position: absolute; left: 52%; bottom: 0.2em; z-index: -1;
  width: 1.05em; height: 0.525em; transform: translateX(-50%); overflow: hidden;
}
.hname .sun { display: block; width: 100%; height: 100%; background: var(--apricot); border-radius: 1.05em 1.05em 0 0; }
/* the horizon sits on the baseline, 0.1em above the bottom of the 0.8 line box */
.hname.lit { position: relative; }
.hname.lit::after {
  content: ""; position: absolute; bottom: 0.1em; height: 1px; background: var(--cerulean);
  left: calc(var(--inset) - var(--gutter)); right: calc(var(--inset) - var(--gutter));
}
.hname.reflect {
  transform: scaleY(-1); opacity: 0.22; margin-top: -0.1em;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 55%);
  mask-image: linear-gradient(to top, #000 0%, transparent 55%);
  height: 0.55em; overflow: hidden; display: flex; align-items: flex-end;
}
.hname.reflect > span { display: block; transform: translateY(0.1em); }
.hero .spread { align-items: end; }
.hero-note { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Said up front */
.upfront { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: 2.4rem; }
.upfront h3 { padding-bottom: 0.6em; border-bottom: 1px solid var(--rule); }
.upfront ul { list-style: none; margin: 0; padding: 0; }
.upfront li { padding: 0.8em 0; border-bottom: 1px solid var(--rule); }
.upfront li:last-child { border-bottom: 0; }
.upfront-line {
  margin-top: 2rem; padding: 1.1em 0 0; border-top: 1px solid var(--cerulean);
  font-family: var(--display); font-weight: 300; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4;
}

/* Uses: three columns of plain text under a shared rule */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 2.6rem; }
.uses > div { border-top: 1px solid var(--cerulean); padding-top: 1.1rem; }
.uses .addr {
  font-family: var(--display); font-weight: 300; font-size: 1.45rem; letter-spacing: -0.02em;
  color: var(--cerulean); margin-bottom: 0.5rem; overflow-wrap: anywhere;
}

/* Definition rows (fit, price, transfer) */
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li, .rows > div { display: grid; grid-template-columns: 13rem 1fr; gap: 24px; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.rows > li:first-child, .rows > div:first-child { border-top: 1px solid var(--rule); }
.rows dt, .rows .k { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.rows dd { margin: 0; }
.rows .when { display: block; font-family: var(--text); font-weight: 500; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.3rem; }
.rows p:last-child { margin-bottom: 0; }

/* Portrait */
.portrait { margin: 0; }
.portrait img { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--cerulean); padding: 8px; background: var(--fog); }
.portrait figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }

/* Quick enquiry (fit page) */
.ask { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.ask input { flex: 1 1 16rem; }

/* Forms */
.form-panel { background: var(--shell); padding: clamp(22px, 4vw, 44px); }
.fields { display: grid; gap: 18px; }
.half { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem var(--text); color: var(--ink);
  background: var(--white); border: 1px solid var(--rule); border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--cerulean); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }
.status { margin: 0; padding: 12px 14px; background: var(--fog); border-left: 3px solid var(--cerulean); }
.status.bad { border-left-color: #A4262C; color: #7A1C21; }
.side h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; margin: 1.8em 0 0.5em; }
.side h2:first-child { margin-top: 0; }
address { font-style: normal; }

/* Prose pages */
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* 404 */
.lost .hname { font-size: clamp(2.6rem, 9vw, 6.5rem); }

/* Footer */
.foot { background: var(--cerulean); color: var(--fog); margin-top: 0; }
.foot a { color: var(--white); }
.foot-in {
  max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter) 40px;
  display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 40px;
}
.foot-name { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--white); }
.foot-name .mark { outline: 1px solid rgba(255, 255, 255, 0.6); }
.foot-h { font-family: var(--text); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog); margin: 0 0 0.9rem; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; min-height: 36px; align-items: center; }
.foot address a { display: inline-flex; min-height: 36px; align-items: center; }
.foot-base {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 34px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid rgba(238, 242, 244, 0.35); font-size: 0.9rem;
}

/* Narrow screens */
@media (max-width: 900px) {
  .spread, .spread.wide-first, .upfront, .uses { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-firm { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --inset: 6px; }
  .menu { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 12px; right: 12px; top: 84px; z-index: 30; background: var(--fog); border: 1px solid var(--cerulean); padding: 8px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { width: 100%; padding: 0 14px; }
  .nav-cta a { margin: 6px 0 0; justify-content: center; }
  .top-in { position: relative; padding-top: 22px; }
  .rows > li, .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .half { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero .sun { animation: rise 1.4s ease-out both; }
  @keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .btn, .nav a { transition: background-color 0.15s ease, color 0.15s ease; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
