/* Kinfold Labs — site styles */

:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --surface-2: #F4EDE3;
  --ink: #221C3D;
  --text-2: #5C5577;
  --line: #E9E1D6;
  --coral: #E4674A;
  --saffron: #EFA43A;
  --teal: #23907F;
  --coral-ink: #B9452B;
  /* Evenly brand */
  --ev: #6D28D9;
  --ev-deep: #4C1D95;
  --ev-soft: #EDE7FB;
  --ev-green: #34D399;
  --radius: 22px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15122A; --surface: #1E1A36; --surface-2: #241F40; --ink: #F6F1E9; --text-2: #B5AEC8;
    --line: #322C52; --coral: #F27C5F; --saffron: #F6B955; --teal: #3FB8A5; --coral-ink: #F7A08A;
    --ev-soft: #2B2042;
  }
}
:root[data-theme="dark"] {
  --bg: #15122A; --surface: #1E1A36; --surface-2: #241F40; --ink: #F6F1E9; --text-2: #B5AEC8;
  --line: #322C52; --coral: #F27C5F; --saffron: #F6B955; --teal: #3FB8A5; --coral-ink: #F7A08A;
  --ev-soft: #2B2042;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 50px); }
h3 { font-size: 23px; }
p { margin: 0; }
.eyebrow {
  font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 36em; }

/* Mark colours: the inline SVG uses these */
.mark { --m1: var(--coral); --m2: var(--saffron); --m3: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; letter-spacing: -0.01em; }
.brand svg { width: 38px; height: 38px; }
.brand b { font-weight: 600; } .brand > span > span { color: var(--text-2); font-weight: 400; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--text-2);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.cta { background: var(--ink); color: var(--bg); }
.nav-links a.cta:hover { background: var(--ink); opacity: .9; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; cursor: pointer;
  }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 17px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 16px/1 var(--sans); padding: 16px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--coral); font-weight: 500; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--saffron) 22%, transparent), transparent 68%);
}
.hero-art svg { position: relative; width: 100%; height: 100%; }
.hero-art .spin { transform-origin: 60px 60px; animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .spin { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 190px; order: -1; justify-self: start; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { margin-top: 18px; }

/* ---------- Name story ---------- */
.story { background: var(--surface); border-block: 1px solid var(--line); }
.equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px; }
.part {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  position: relative; overflow: hidden;
}
.part::after { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%; background: var(--accent); }
.part .word { font: 600 44px/1 var(--serif); color: var(--accent-ink, var(--ink)); letter-spacing: -0.02em; }
.part .def { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 14px 0 12px; }
.part p { color: var(--text-2); font-size: 16px; }
.op { align-self: center; font: 400 38px/1 var(--serif); color: var(--text-2); }
.kin { --accent: var(--coral); }
.fold { --accent: var(--saffron); }
.labs { --accent: var(--teal); }

.belief {
  margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
}
.belief svg { width: clamp(72px, 10vw, 120px); height: auto; }
.belief blockquote { margin: 0; font: 500 clamp(24px, 3.2vw, 36px)/1.3 var(--serif); letter-spacing: -0.01em; }
.belief p { margin-top: 14px; opacity: .78; font-size: 16px; max-width: 46em; }
.belief .mark { --m1: #F27C5F; --m2: #F6B955; --m3: #3FB8A5; }

@media (max-width: 860px) {
  .equation { grid-template-columns: 1fr; gap: 10px; }
  .op { justify-self: center; font-size: 30px; }
  .belief { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Evenly ---------- */
.evenly-card {
  background: linear-gradient(150deg, var(--ev) 0%, var(--ev-deep) 100%); color: #fff;
  border-radius: 32px; padding: clamp(28px, 5vw, 64px); overflow: hidden; position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.evenly-card::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
}
.evenly-card > * { position: relative; }
.ev-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.ev-brand img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.ev-brand strong { font: 600 24px/1 var(--sans); display: block; }
.ev-brand span { font-size: 14px; opacity: .8; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.14); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ev-green); box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.evenly-card h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(30px, 4vw, 46px); }
.evenly-card .lead { color: rgba(255,255,255,.85); margin-top: 16px; }
.features { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.features li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.9); }
.features li b { display: block; color: #fff; font-weight: 600; }
.features svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--ev-green); }
.btn-ev { background: #fff; color: var(--ev-deep); }
.ev-note { font-size: 14px; opacity: .75; margin-top: 14px; }

.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.phones img { border-radius: 26px; box-shadow: 0 24px 50px rgba(20, 6, 50, .45); }
.phones img:nth-child(2) { transform: translateY(-34px); }

@media (max-width: 960px) {
  .evenly-card { grid-template-columns: 1fr; }
  .phones { max-width: 520px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .phones { gap: 8px; }
  .phones img { border-radius: 14px; }
  .phones img:nth-child(2) { transform: translateY(-18px); }
}

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.value .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}
.value .ico svg { width: 24px; height: 24px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--text-2); font-size: 16px; }
@media (max-width: 1000px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

.about-text { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.about-text p { color: var(--text-2); }
.about-text p + p { margin-top: 16px; }
@media (max-width: 860px) { .about-text { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-card {
  background: var(--surface-2); border-radius: 32px; padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.contact-card .lead { margin-top: 16px; }
.contact-links { display: grid; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 16px; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: border-color .15s, transform .15s;
}
.contact-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.contact-link .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--bg); color: var(--coral); }
.contact-link .ico svg { width: 22px; height: 22px; }
.contact-link small { display: block; font-size: 13px; color: var(--text-2); }
.contact-link strong { font-weight: 600; word-break: break-word; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--text-2); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot .brand { font-size: 18px; color: var(--ink); }
.foot .brand svg { width: 30px; height: 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Icons from assets/icons.svg */
.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
