/* TLY Investments company site. Plain CSS, no build step.
   Palette: ink for text and dark surfaces, one blue accent, mist for alternate sections. */
:root {
  --ink: #121A2B;
  --body: #2B3444;
  --muted: #5B6475;
  --line: #E1E5EC;
  --mist: #F3F5F9;
  --accent: #2456E6;
  --accent-ink: #1A43B8;
  --white: #FFFFFF;
  --radius: 20px;
  --wrap: 1080px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Inter Tight", Inter, system-ui, sans-serif; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0 0 14px; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--white); font: 700 12px/1 "Inter Tight", Inter, sans-serif; letter-spacing: 0.02em; }
nav[aria-label="Main"] { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
nav[aria-label="Main"] a { color: var(--body); font-weight: 500; font-size: 15px; }
.nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--white) !important; }
.nav-cta:hover { text-decoration: none; background: #0B1222; }
/* On phones the section links are one scroll away; keep the header to one line with the brand and Contact. */
@media (max-width: 560px) { nav[aria-label="Main"] a:not(.nav-cta) { display: none; } .brand-name { font-size: 15px; } }

/* Sections */
.hero { padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px); }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.lead { font-size: clamp(17px, 2.2vw, 21px); max-width: 60ch; color: var(--body); margin-top: 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 600; border: 1px solid var(--accent); }
.button:hover { text-decoration: none; background: var(--accent-ink); border-color: var(--accent-ink); }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button.quiet:hover { background: var(--mist); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section.alt { background: var(--mist); }
.grid { display: grid; gap: 20px; margin-top: 28px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section.alt .card, .feature { background: var(--white); }
.card p:last-child { margin-bottom: 0; }

.feature { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; border: 1px solid var(--line); border-radius: 28px; padding: 32px; margin-top: 28px; }
.feature h3 { font-size: 28px; }
.feature p:last-child { margin: 18px 0 0; }
.feature-aside { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.chip { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 14px; text-align: center; }
.chip.soft { background: var(--mist); color: var(--muted); }
@media (max-width: 720px) { .feature { grid-template-columns: 1fr; } .feature-aside { flex-direction: row; flex-wrap: wrap; } }
.note { color: var(--muted); margin-top: 20px; max-width: 70ch; }

.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 14px; font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

.contact p { max-width: 64ch; font-size: 17px; }

/* Prose pages */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(32px, 5vw, 48px); }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }
