/* KEPLER — Variant 1: Mission Control, restrained */

/* Self-hosted fonts (SIL Open Font License; see assets/fonts/OFL-*.txt) */
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-var.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-var.woff") format("woff"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --bg: #f2f3f1;
  --surface: #ffffff;
  --ink: #0d1117;
  --muted: #566070;
  --line: #d3d7dc;
  --accent: #d4440a;
  --accent-ink: #ffffff;
  --panel: #0d1117;
  --panel-ink: #e8eaed;
  --panel-muted: #8f98a5;
  --panel-line: #262e3a;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li::marker { color: var(--accent); }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
/* LOGO SLOT — replace the inner <svg> (or the whole .logo-slot) with the real logo */
.logo-slot { width: 38px; height: 38px; display: grid; place-items: center; }
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.wordmark { font-weight: 700; letter-spacing: 0.18em; font-size: 17px; line-height: 1; }
.wordmark small { display: block; font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.22em; color: var(--muted); margin-top: 5px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14px; text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.menu-btn {
  appearance: none; background: none; border: 1px solid var(--line); color: var(--ink);
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; font: inherit;
}
.menu-btn:hover { border-color: var(--ink); }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 20px; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.sm { padding: 9px 14px; font-size: 11.5px; }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 88px 72px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -0.035em; line-height: 1; margin-bottom: 28px; max-width: 14ch; }
.hero .lead { max-width: 54ch; color: var(--muted); font-size: 18.5px; }
.hero .lead a { color: var(--ink); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.orbit { width: 100%; max-width: 520px; justify-self: end; color: var(--ink); }
.orbit .ring { fill: none; stroke: currentColor; stroke-width: 1; opacity: .28; }
.orbit .ring.main { opacity: .9; }
.orbit .axis { stroke: currentColor; opacity: .18; stroke-width: 1; }
.orbit .tick { stroke: currentColor; opacity: .4; stroke-width: 1; }
.orbit .sweep { fill: var(--accent); opacity: .16; stroke: var(--accent); stroke-width: 1; }
.orbit .sun { fill: var(--accent); }
.orbit .body { fill: var(--ink); }


/* ---------- sections ---------- */
section { padding-block: 104px; }
.sec-head { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-bottom: 56px; align-items: start; }
.sec-label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.sec-label b { color: var(--accent); font-weight: 500; }
.sec-head h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; max-width: 30ch; text-wrap: balance; }

.rows { border-bottom: 1px solid var(--line); }
.row { border-top: 1px solid var(--line); transition: background .2s ease; }
.row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%); }
.row summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 240px 1fr 28px; gap: 40px; align-items: baseline; padding: 30px 0; }
.row summary::-webkit-details-marker { display: none; }
.row .id { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.row:hover .id, .row[open] .id { color: var(--accent); }
.row h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; }
.row summary:hover h3 { color: var(--accent); }
.row .tog::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--accent); display: block; text-align: right; line-height: 1; }
.row[open] .tog::after { content: "\2013"; }
.row .panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-bottom: 34px; }
.row .panel .body { max-width: 66ch; }
.row .body { color: var(--muted); font-size: 16.5px; }
.row .body p:last-child, .row .body ul:last-child { margin-bottom: 0; }
.row .body ul { padding-left: 1.1em; }
.row .body li { margin-bottom: .45em; }
.row .body li::marker { color: var(--accent); }

.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- readiness band ---------- */
.band { background: var(--panel); color: var(--panel-ink); padding-block: 72px; position: relative; overflow: hidden; }
.band .wrap { display: grid; grid-template-columns: 240px 1fr auto; gap: 40px; align-items: center; }
.band .sec-label { color: var(--panel-muted); padding: 0; }
.band h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 14px; }
.band p { margin: 0; color: var(--panel-muted); font-size: 18px; }
.band p a { color: var(--panel-ink); }
.band a:hover { color: var(--accent); }
.band .btn { color: var(--accent-ink); }
.band .btn:hover { color: var(--accent-ink); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 240px 154px 1fr; gap: 40px; align-items: start; }
.portrait { position: relative; width: 154px; aspect-ratio: 4 / 5; background: var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::before, .portrait::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--accent); }
.portrait::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.portrait::after { right: -7px; bottom: -7px; border-left: 0; border-top: 0; }
.about h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 22px; }
.about .bio { color: var(--muted); max-width: 62ch; }
.about .bio p:first-of-type { color: var(--ink); }
.pull { margin: 34px 0 26px; padding-left: 20px; border-left: 2px solid var(--accent); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; max-width: 30ch; text-wrap: balance; }
.about .links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.about .note { color: var(--muted); font-size: 15.5px; margin: 28px 0 14px; }
.icon-link { width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; }
.icon-link:hover { border-color: var(--accent); }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 240px 1fr 28px; gap: 40px; align-items: baseline;
  padding: 26px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .id { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 22px; color: var(--accent); text-align: right; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq .ans { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-bottom: 30px; }
.faq .ans > div { color: var(--muted); max-width: 66ch; font-size: 16.5px; }
.faq .ans > div > :last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.card p { color: var(--muted); margin: 0; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card.primary { background: var(--panel); color: var(--panel-ink); border-color: var(--panel); }
.card.primary p { color: var(--panel-muted); }
.card.primary .btn { color: var(--accent-ink); }
.mail { font-family: var(--mono); font-size: 15px; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { background: var(--panel); color: var(--panel-ink); padding-block: 64px 36px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--panel-line); }
.site-footer .brand, .site-footer .brand:hover { color: var(--panel-ink); }
.site-footer .wordmark small { color: var(--panel-muted); }
.site-footer h4 { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--panel-muted); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .bottom { display: flex; justify-content: space-between; padding-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--panel-muted); letter-spacing: .06em; }

/* ---------- inner pages ---------- */
.page-head { border-bottom: 1px solid var(--line); padding-block: 88px 64px; }
.page-head .eyebrow { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -0.035em; line-height: 1; max-width: 16ch; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); font-size: 20px; max-width: 48ch; margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two .card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.two .card li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 8px; }
.two .card li::before { content: attr(data-n); font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.cta-card { margin-top: 24px; }
.prose { font-size: 17px; }
.prose h4 { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 48px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink); }
.prose h4::before { content: "// "; color: var(--accent); }
.prose > p:first-child { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.prose p, .prose li { color: var(--ink); }
.prose li p { margin: 0 0 .5em; }
.prose ul { margin-bottom: 1.2em; }
.prose strong { font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 40px; }
  .orbit { max-width: 380px; justify-self: center; }
  .sec-head, .about, .faq summary, .faq .ans, .band .wrap, .prose-wrap { grid-template-columns: 1fr; gap: 14px; }
  .sec-head { margin-bottom: 36px; }
  .sec-label { padding-top: 0; }
  .row summary { grid-template-columns: 1fr 28px; gap: 6px 16px; padding: 24px 0; }
  .row .id { grid-column: 1 / -1; }
  .row .panel { grid-template-columns: 1fr; gap: 0; padding-bottom: 28px; }
  .faq summary { grid-template-columns: 1fr 28px; gap: 6px 16px; }
  .faq summary .id { grid-column: 1 / -1; }
  .faq .ans { padding-bottom: 26px; }
  .contact-grid, .two, .site-footer .top { grid-template-columns: 1fr; }
  section { padding-block: 72px; }
  .band .wrap { gap: 22px; }
  .about { gap: 28px; }
  .portrait { width: 126px; }
  .menu-btn { display: grid; margin-left: auto; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; margin-left: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 1px solid var(--accent); }
  .bar { gap: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 36px); }
  .card { padding: 24px; }
  .site-footer .bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.about h3.name { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: -6px 0 22px; }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }

/* ---------- GRC selector ---------- */
.gsel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 8px; }
.gbtn {
  appearance: none; cursor: pointer; font: inherit; text-align: left; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); padding: 26px 28px 24px;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "gl tog" "gt gt" "gc gc"; row-gap: 6px; align-items: start;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.gbtn:hover { border-color: var(--ink); transform: translateY(-2px); }
.gbtn .gl { grid-area: gl; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--accent); }
.gbtn .gt { grid-area: gt; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-top: 26px; }
.gbtn .gc { grid-area: gc; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gbtn .tog { grid-area: tog; }
.gbtn .tog::after { content: "+"; font-family: var(--mono); font-size: 26px; line-height: 1; color: var(--accent); }
.gbtn[aria-expanded="true"] { background: var(--panel); color: var(--panel-ink); border-color: var(--panel); }
.gbtn[aria-expanded="true"] .gc { color: var(--panel-muted); }
.gbtn[aria-expanded="true"] .tog::after { content: "\2013"; }
.gpanel { margin-top: 36px; }
html:not(.js) .gpanel[hidden] { display: block; }
.gpanel[hidden] { display: none; }
.ghead { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: baseline; margin-bottom: 20px; }
.ghead h3 { font-size: 26px; letter-spacing: -0.02em; }
.ghead p { margin: 0; color: var(--muted); }

@media (max-width: 980px) {
  .gsel { grid-template-columns: 1fr; gap: 12px; }
  .gbtn { padding: 20px 22px; grid-template-areas: "gl tog" "gt gt" "gc gc"; }
  .gbtn .gt { margin-top: 12px; }
  .ghead { grid-template-columns: 1fr; gap: 4px; }
  .gpanel { margin-top: 24px; }
}

/* ---------- section marker (decorative divider in the left column) ---------- */
.prose-wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 40px; }
.mark {
  display: block; position: relative; height: 22px; margin-top: 24px; max-width: 200px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--muted) 55%, transparent) 0 1px, transparent 1px 10px) left 8px / 100% 6px no-repeat;
}
.mark::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.mark::after { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--accent); }
.band .mark { margin-top: 0; background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--panel-muted) 70%, transparent) 0 1px, transparent 1px 10px); }
.band .mark::before { background: var(--panel-line); }
.about .mark, .prose-wrap .mark { margin-top: 18px; }
@media (max-width: 980px) {
  .mark, .about .mark, .prose-wrap .mark, .band .mark { margin-top: 0; max-width: 120px; }
}
@media (max-width: 980px) { .prose-wrap { grid-template-columns: 1fr; gap: 14px; } }
