/* Oikos site. Direction 3, "Gallery". Stone ground, near-black ink, saffron, cobalt and rust used like pieces of art; a large italic serif word; plenty of air.
   Layout concept: asymmetric hero (headline left, art blocks right), a plain header, pill buttons, paper cards, a black call-to-action band. */
:root {
  --bg: #E9E4DA;
  --surface: #F4F0E7;
  --surface-2: #DDD6C8;
  --ink: #1E1B18;
  --ink-2: #5A5348;
  --line: #CFC7B6;
  --accent: #1E1B18;
  --accent-ink: #F4F0E7;
  --accent-soft: #E3DCCB;
  --hl: #9E3208;
  --copper: #9E3208;
  --copper-soft: #F0DDD0;
  --ok: #2B6A3C;
  --ok-soft: #DEE9D6;
  --saffron: #E0A526;
  --cobalt: #2D5BA8;
  --rust: #C2410C;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151412; --surface: #1F1D1A; --surface-2: #292622; --ink: #EDE8DD; --ink-2: #ABA394;
    --line: #38342E; --accent: #E0A526; --accent-ink: #151412; --accent-soft: #33291A; --hl: #F08A55;
    --copper: #F08A55; --copper-soft: #35241A; --ok: #7CC590; --ok-soft: #173224; --cobalt: #6E94DB;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151412; --surface: #1F1D1A; --surface-2: #292622; --ink: #EDE8DD; --ink-2: #ABA394;
  --line: #38342E; --accent: #E0A526; --accent-ink: #151412; --accent-soft: #33291A; --hl: #F08A55;
  --copper: #F08A55; --copper-soft: #35241A; --ok: #7CC590; --ok-soft: #173224; --cobalt: #6E94DB;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--hl); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7vw, 5.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.9rem; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 38em; line-height: 1.55; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; display: inline-grid; place-items: center; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .menu-btn { display: inline-grid; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font-body); padding: 14px 20px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* sections */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section.tint { background: var(--surface-2); }
.section.rule { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46rem; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
.split > * { min-width: 0; }

/* page hero (inner pages) */
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 48px); display: grid; gap: 20px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); max-width: 16em; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.card .ico svg { width: 22px; height: 22px; }
.card.flat { background: transparent; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; padding: 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--copper-soft); color: var(--copper); }
.pill.next { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }

/* product window (mock UI) */
.win { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.win-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }
.win-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kpi { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.kpi small { display: block; font-size: 12px; color: var(--ink-2); }
.kpi b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.lrow:first-child { border-top: 0; }
.lrow > span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .5s cubic-bezier(.2,.7,.2,1); }

/* chat */
.chat { display: grid; gap: 10px; }
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; max-width: 88%; }
.bubble.me { justify-self: end; background: var(--surface-2); }
.bubble.ai { background: var(--bg); border: 1px solid var(--line); }
.bubble .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fine { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }

/* lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.6' fill='none' stroke='%231E1B18' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ticks.no li::before { background-color: var(--copper-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 6l6 6M12 6l-6 6' fill='none' stroke='%239E3208' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ticks b { color: var(--ink); font-weight: 600; }

/* steps (a real sequence) */
.steps { display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--hl); }
.step h4 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--ink-2); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
tr:last-child td { border-bottom: 0; }

/* pricing */
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.plan.feat { border: 2px solid var(--accent); }
.plan .price { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--font-body); font-size: 15px; color: var(--ink-2); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--hl); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-2); padding-bottom: 20px; max-width: 46em; }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { color: var(--copper); font-size: 13.5px; min-height: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }

/* cta band */
.cta { background: var(--accent); color: var(--accent-ink); border-radius: 22px; padding: clamp(32px, 6vw, 72px); display: grid; gap: 20px; }
.cta h2 { color: var(--accent-ink); max-width: 15em; }
.cta p { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); max-width: 34em; font-size: 18px; }
.cta .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.cta .btn.ghost { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 50%, transparent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; margin-top: 0; }
.foot { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin-bottom: 12px; }
.foot a { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; font-size: 15px; }
.foot a:hover { color: var(--accent); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); max-width: 60em; }

/* hero (home) */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.hero > * { min-width: 0; }
.hero-copy { display: grid; gap: 24px; }
.hero h1 em, h1 em, h2 em { font-style: italic; color: var(--hl); }
.structure { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 10px; }
.structure svg { display: block; width: 100%; height: auto; }
.structure .cap { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); padding: 8px 6px 4px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sv-node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.sv-node.ent rect { fill: var(--accent-soft); stroke: var(--accent); }
.sv-node.loan rect { fill: var(--copper-soft); stroke: var(--copper); }
.sv-t { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--ink); }
.sv-s { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-2); }
.sv-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 600; animation: draw 1.6s cubic-bezier(.3,.6,.2,1) both; }
.sv-line.b { animation-delay: .25s; } .sv-line.c { animation-delay: .5s; } .sv-line.d { animation-delay: .75s; }
.sv-pct rect { fill: var(--bg); stroke: var(--line); }
.sv-pct text { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink); text-anchor: middle; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sv-line { animation: none; } .bar i { transition: none; } }

/* segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg button { font: 500 14.5px var(--font-body); padding: 9px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line); }

.stack { display: grid; gap: 16px; }
.kicker-list { display: grid; gap: 24px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.big-quote { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2; max-width: 22em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ---- Gallery: what differs from a plain token swap ---- */
:focus-visible { outline-color: var(--hl); }
.site-header { background: var(--bg); backdrop-filter: none; border-bottom: 0; }
.brand { font-family: var(--font-body); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav a { border-radius: 99px; }
.nav a:hover, .nav a[aria-current="page"] { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav a.btn { color: var(--accent-ink); text-decoration: none; }
.btn { border-radius: 99px; font-weight: 600; padding: 14px 24px; }
.btn.ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.card, .win, .plan, .tbl-wrap, .structure { border-radius: 4px; }
.card { background: var(--surface); }
.card.flat { background: transparent; border-color: var(--ink); border-width: 0; border-top: 1.5px solid var(--ink); border-radius: 0; padding-inline: 0; }
.section.tint { background: var(--surface-2); }
.pill { border-radius: 99px; }
.step::before { color: var(--hl); }
.card .ico { background: var(--saffron); color: #1E1B18; border-radius: 50%; }
.bar i { background: var(--ink); }
.plan.feat { border-color: var(--ink); border-width: 2px; }
.kpi { background: var(--bg); border-radius: 4px; }

/* hero: asymmetric, with art blocks */
.hero { grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { line-height: .98; }
.art { position: relative; aspect-ratio: 1 / 1.05; width: 100%; max-width: 520px; justify-self: end; }
.art i { position: absolute; display: block; }
.art .a1 { left: 0; top: 0; width: 58%; height: 58%; background: var(--ink); border-radius: 999px 999px 0 0; }
.art .a2 { right: 0; top: 10%; width: 44%; aspect-ratio: 1; background: var(--saffron); border-radius: 50%; }
.art .a3 { left: 14%; bottom: 0; width: 46%; height: 36%; background: var(--cobalt); }
.art .a4 { right: 6%; bottom: 6%; width: 30%; height: 24%; background: var(--rust); border-radius: 0 999px 0 0; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; border-top: 1.5px solid var(--ink); padding-top: 18px; margin-top: clamp(28px, 5vw, 56px); }
.strip b { display: block; font-weight: 600; margin-bottom: 2px; }
.strip span { color: var(--ink-2); font-size: 15px; }

/* the ownership figure keeps its content; it becomes a framed plate */
.structure { background: var(--surface); border: 1.5px solid var(--ink); }
.sv-node rect { fill: var(--surface); stroke: var(--ink-2); }
.sv-node.ent rect { fill: var(--accent-soft); stroke: var(--ink); }
.sv-line { stroke: var(--cobalt); stroke-width: 2; }
.sv-pct rect { fill: var(--bg); }

/* call to action: black band, saffron button */
.cta { background: var(--ink); color: var(--bg); border-radius: 6px; }
.cta h2 { color: var(--bg); }
.cta p { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.cta .btn { background: var(--saffron); border-color: var(--saffron); color: #1E1B18; }
.cta .btn.ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 55%, transparent); }
.cta .btn.ghost:hover { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .cta { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .cta h2 { color: var(--ink); }
:root[data-theme="dark"] .cta p { color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { background: var(--surface-2); color: var(--ink); }
  :root:not([data-theme="light"]) .cta h2 { color: var(--ink); }
  :root:not([data-theme="light"]) .cta p { color: var(--ink-2); }
}
.site-footer { border-top: 1.5px solid var(--ink); }

/* long-form pages (guides, legal, glossary) */
.prose { max-width: 44rem; }
.prose p { margin: 0 0 1em; color: var(--ink-2); }
.prose h3 { font-size: 1.7rem; margin: 1.8em 0 .5em; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: .45em; }
.prose b { color: var(--ink); font-weight: 600; }
.prose .notice, .notice { border-left: 3px solid var(--hl); background: var(--surface); padding: 14px 18px; border-radius: 0 6px 6px 0; font-size: 15px; color: var(--ink-2); max-width: 44rem; }
.legal-doc h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; margin: 2em 0 .5em; }
a.card { transition: border-color .15s; }
a.card:hover { border-color: var(--ink); }
.gloss { display: grid; gap: 0; max-width: 46rem; margin: 0; }
.gloss div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 6px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.gloss dt { font-family: var(--font-display); font-size: 1.4rem; }
.gloss dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .gloss div { grid-template-columns: 1fr; } }

/* draft review aids: removed when a page is published */
.draftbar { position: sticky; top: 0; z-index: 30; background: var(--saffron); color: #1E1B18; font: 500 13px/1.4 var(--font-mono); padding: 8px var(--gutter); text-align: center; }
mark.ph { background: var(--saffron); color: #1E1B18; padding: 0 3px; border-radius: 3px; }
