/* ============================================================
   Kinesis Risk Advisors LLC — stylesheet
   Palette: deep navy, slate, warm gold accent
   ============================================================ */

:root {
  --navy-900: #0b1a2b;
  --navy-800: #10243a;
  --navy-700: #17324f;
  --slate-500: #4a5f78;
  --slate-300: #8ea0b6;
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --white: #ffffff;
  --gold: #c9a24b;
  --gold-soft: #e4cf95;
  --ink: #0e1c2b;
  --line: rgba(16, 36, 58, 0.10);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  --maxw: 1160px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 43, 0.06), 0 4px 16px rgba(11, 26, 43, 0.05);
  --shadow-lg: 0 20px 60px rgba(11, 26, 43, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; color: var(--navy-900); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}

.grad {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-primary { background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--navy-800); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-700); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 248, 251, 0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(246, 248, 251, 0.94); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { color: var(--gold); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 600; color: var(--navy-900); letter-spacing: -0.02em; }
.brand-text em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-500); margin-top: 3px; }

.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--slate-500); position: relative; transition: color 0.2s; }
.site-nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width 0.25s var(--ease); }
.site-nav a:hover { color: var(--navy-900); }
.site-nav a:hover::after { width: 100%; }
.header-cta { flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease), padding 0.35s; }
.mobile-nav.open { max-height: 420px; padding: 12px 24px 24px; }
.mobile-nav a { padding: 13px 4px; font-weight: 500; color: var(--navy-800); border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { border: none; margin-top: 12px; color: var(--white); justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 11vw, 140px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 500px at 78% -8%, rgba(201, 162, 75, 0.14), transparent 60%),
    radial-gradient(800px 500px at 10% 10%, rgba(23, 50, 79, 0.07), transparent 55%),
    var(--paper);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(700px 500px at 70% 20%, #000, transparent 75%);
  opacity: 0.6;
}
.hero-inner { max-width: 880px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 500; margin-bottom: 26px; }
.hero-lead { font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--slate-500); max-width: 640px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(30px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: 34px; }
.stat { display: flex; flex-direction: column; }
.stat-value { display: inline-flex; align-items: baseline; }
.stat-num, .stat-plus { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--navy-900); line-height: 1; }
.stat-plus { color: var(--gold); }
.stat p { font-size: 0.9rem; color: var(--slate-500); margin-top: 10px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy-900); color: var(--slate-300); padding: 22px 0; }
.trustbar-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trustbar span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-300); }
.trustbar ul { display: flex; gap: clamp(20px, 4vw, 44px); list-style: none; flex-wrap: wrap; justify-content: center; }
.trustbar li { font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold-soft); font-weight: 500; letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2, .approach-copy h2, .about-copy h2, .contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-sub { font-size: 1.08rem; color: var(--slate-500); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative; overflow: hidden;
}
.section-alt .card { background: var(--paper); }
.card::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-icon { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--gold); border: 1px solid var(--line); width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { color: var(--slate-500); font-size: 0.98rem; }

.card.post .tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-700); background: var(--paper-2); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.section .card.post .tag { background: var(--paper-2); }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.92rem; color: var(--navy-900); transition: gap 0.2s; }
.card.post:hover .card-link { color: var(--gold); }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.approach-copy { position: sticky; top: 110px; }
.approach-copy .btn { margin-top: 26px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 22px; padding: 26px; border-radius: var(--radius); border: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.steps li:hover { background: var(--paper); border-color: var(--line); }
.step-num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-900); color: var(--gold-soft); font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--slate-500); }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry { padding: 30px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.section-alt .industry { background: var(--paper); }
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.industry h3 { font-size: 1.18rem; margin-bottom: 10px; }
.industry p { color: var(--slate-500); font-size: 0.95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 76px); align-items: center; }
.about-copy p { color: var(--slate-500); margin-bottom: 18px; font-size: 1.03rem; }
.about-points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.about-points li { position: relative; padding-left: 32px; color: var(--navy-800); font-weight: 500; }
.about-points li::before { content: ''; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat; }
.about-panel blockquote { background: var(--navy-900); color: var(--white); padding: 44px 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; }
.about-panel blockquote::before { content: '"'; font-family: var(--font-serif); font-size: 6rem; color: var(--gold); opacity: 0.35; position: absolute; top: 6px; left: 24px; line-height: 1; }
.about-panel p { font-family: var(--font-serif); font-size: 1.24rem; line-height: 1.5; margin: 20px 0 26px; position: relative; }
.about-panel footer strong { display: block; color: var(--gold-soft); }
.about-panel footer span { font-size: 0.9rem; color: var(--slate-300); }

/* ---------- Contact ---------- */
.contact-section { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-copy p { color: var(--slate-500); font-size: 1.08rem; margin-bottom: 30px; }
.contact-details { list-style: none; display: grid; gap: 18px; }
.contact-details li { display: flex; flex-direction: column; gap: 4px; }
.contact-details span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-details a, .contact-details li { color: var(--navy-800); font-weight: 500; }
.contact-details a:hover { color: var(--gold); }

.contact-form { background: var(--white); padding: 38px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-sans); font-size: 0.98rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.16); }
.contact-form .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; color: #1a7a4a; font-weight: 600; font-size: 0.95rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding: 70px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text em { color: var(--slate-300); }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: 0.95rem; color: var(--slate-300); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--slate-300); font-size: 0.95rem; padding: 5px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 10px; font-size: 0.88rem; }
.footer-legal a:hover { color: var(--gold-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .industries { grid-template-columns: repeat(2, 1fr); }
  .approach-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .approach-copy { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .cards, .industries { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
