/* ============================================================
   Kingsway Ventures
   ============================================================ */

:root {
  --ink:        #0b1622;
  --ink-2:      #16283a;
  --slate:      #4a6076;
  --muted:      #6b8199;
  --line:       #dde4ea;
  --paper:      #ffffff;
  --paper-2:    #f4f7f9;
  --accent:     #d8561f;
  --accent-dk:  #b84514;
  --accent-hi:  #ee6a30;

  --wrap: 1140px;
  --r: 10px;

  --shadow-sm: 0 1px 2px rgba(11, 22, 34, .06), 0 2px 8px rgba(11, 22, 34, .04);
  --shadow-md: 0 4px 12px rgba(11, 22, 34, .07), 0 12px 32px rgba(11, 22, 34, .07);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; }

/* --accent-dk, not --accent: the lighter orange measures 3.98:1 on white,
   under the 4.5:1 WCAG AA floor. --accent-dk clears it at 5.39:1. */
a { color: var(--accent-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hi); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.quote :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .96rem; letter-spacing: -0.005em;
  padding: 12px 22px; border-radius: var(--r);
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-hi); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--slate); }

.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.06rem; letter-spacing: -0.02em;
}
.brand-mark { width: 26px; height: 26px; fill: var(--accent); flex: none; }
.brand-light { color: var(--slate); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink-2); text-decoration: none;
  font-size: .95rem; font-weight: 500;
}
.nav a:hover { color: var(--accent); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 9px 8px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 400px at 12% -8%, rgba(216, 86, 31, .07), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 880px; }
.hero h1 { margin-bottom: .38em; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--accent-dk); margin: 0 0 16px;
}
.eyebrow-light { color: var(--accent-hi); }

.lede { font-size: clamp(1.04rem, 1.7vw, 1.2rem); color: var(--slate); max-width: 62ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }

.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  list-style: none; padding: 0; margin: 38px 0 0;
  font-size: .93rem; color: var(--slate);
}
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- Sections ---------- */

.section  { padding: clamp(64px, 8vw, 104px) 0; }
.band     { padding: clamp(52px, 6vw, 76px) 0; border-bottom: 1px solid var(--line); }
.section-alt  { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title { margin-bottom: .3em; }
.section-sub { color: var(--slate); max-width: 58ch; margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px 64px; }
.split h2 { margin: 0; }
.split-body p:last-child { margin-bottom: 0; }
.split-body { color: var(--slate); }

/* ---------- Cards ---------- */

.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px 26px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: #c3cfd9; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-num {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-dk); margin-bottom: 14px;
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--slate); font-size: .96rem; margin: 0; }

/* ---------- Work ---------- */

.work-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.work {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.work:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c3cfd9; }
.work:hover .work-go { color: var(--accent-hi); }

.work-thumb {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

/* Miniature of each concept site — not a screenshot, a styled stand-in. */
.mock { width: 100%; color: #fff; }
.mock-bar {
  display: block; width: 34px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .55); margin-bottom: 14px;
}
.mock strong {
  display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em;
  line-height: 1.25; margin-bottom: 7px;
}
.mock em {
  display: block; font-style: normal; font-size: .85rem;
  color: rgba(255, 255, 255, .68); line-height: 1.4;
}

.work-go {
  display: inline-block; margin-top: 14px;
  font-size: .88rem; font-weight: 600; color: var(--accent-dk);
  transition: color .18s ease;
}

.work-note {
  margin: 30px 0 0; font-size: .92rem; color: var(--slate); max-width: 62ch;
}
.thumb-a { background: linear-gradient(135deg, #16283a, #2c4c69); }
.thumb-b { background: linear-gradient(135deg, #1d3547, #4a6076); }
.thumb-c { background: linear-gradient(135deg, #253a2e, #3d6350); }

.work-meta { padding: 22px 24px 26px; }
.work-meta h3 { margin: 10px 0 .45em; }
.work-meta p { color: var(--slate); font-size: .95rem; margin: 0; }

.tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Process ---------- */

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
}
.steps li { border-top: 3px solid var(--line); padding-top: 22px; position: relative; }
.steps li::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 34px; height: 3px;
  background: var(--accent);
}
.step-n {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-dk); margin-bottom: 10px;
}
.steps h3 { margin-bottom: .45em; }
.steps p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Dark section ---------- */

.section-dark { background: var(--ink); }
.section-dark h2 { color: #fff; }
.section-dark .split-body { color: #a9bccd; }
.section-dark em { color: #cddbe6; }

/* ---------- About ----------
   Deliberately light. About, the quote band and the footer used to run dark
   back to back — roughly a quarter of the page as one unbroken slab, which
   read heavy right where the reader should feel invited to act. */

.section-about {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.portrait {
  width: 200px; height: 200px;
  border-radius: var(--r);
  object-fit: cover;
  background: linear-gradient(150deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  /* Monogram fallback styling — harmless once an <img> replaces the div. */
  display: flex; align-items: center; justify-content: center;
  font-size: 4.6rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--accent);
}

.about-body h2 { margin-bottom: .45em; }
.about-body p { color: var(--slate); }
.about-lead { font-size: 1.1rem; color: var(--ink-2) !important; }

.about-sign {
  margin: 26px 0 0;
  font-weight: 600; font-size: .95rem;
  color: var(--ink) !important;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .portrait { width: 132px; height: 132px; font-size: 3rem; }
}

/* ---------- Quote CTA ---------- */

.quote {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(216, 86, 31, .18), transparent 65%),
    var(--ink-2);
  padding: clamp(64px, 8vw, 104px) 0;
  text-align: center;
}
.quote-inner { max-width: 660px; }
.quote h2 { color: #fff; }
.quote .lede { color: #a9bccd; margin: 0 auto 32px; }
.quote-or { margin: 36px 0 8px; font-size: .88rem; color: #8fa5b8; }
.quote-email {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight: 600; letter-spacing: -0.012em;
  word-break: break-word;
}
.quote-email a {
  color: #fff; text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}
.quote-email a:hover { color: var(--accent-hi); border-bottom-color: var(--accent-hi); }

.quote-alt {
  margin: 28px auto 0; max-width: 48ch;
  font-size: .9rem; color: #8fa5b8;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #8fa5b8; padding: 56px 0 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
  padding-bottom: 40px;
}
.brand-footer { color: #fff; }
.brand-footer .brand-light { color: #8fa5b8; }
.footer-note { margin: 14px 0 0; font-size: .93rem; max-width: 34ch; }

.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: flex-start; }
.footer-links a { color: #a9bccd; text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 20px; padding-bottom: 26px;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: #6b8199; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; border-bottom: 0; justify-content: center; }
  .hero-actions .btn { flex: 1 1 auto; }
}

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