/* Layout: a single dark nave. Hero = statement left, living emblem-in-seal right; then portfolio, the one-system rail, leadership, correspondence. */
:root {
  color-scheme: dark;
  --nigredo: #0E0D12;
  --nigredo-2: #15131B;
  --albedo: #F4EFE4;
  --citrinitas: #C9A13B;
  --gold-soft: #D9B455;
  --rubedo: #B5463E;
  --muted: #A9A3AE;
  --hair: #2C2933;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(18px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--nigredo); }
body {
  background: var(--nigredo);
  color: var(--albedo);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--citrinitas); color: var(--nigredo); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--citrinitas); outline-offset: 3px; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 12px; line-height: 16px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; }

/* Top bar */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; }
.bar .mark { width: 22px; height: auto; color: var(--albedo); display: block; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 32px); flex-wrap: wrap; }
.bar nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.bar nav a:hover { color: var(--albedo); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.wordmark { width: min(440px, 100%); height: auto; color: var(--albedo); display: block; }
.wordmark .letter { animation: rise 1.1s cubic-bezier(.2,.7,.1,1) both; }
.thesis { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; margin: 0; text-wrap: balance; }
.thesis em { font-style: normal; color: var(--gold-soft); }
.lede { margin: 0; max-width: 46ch; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 22px; text-decoration: none; border: 1px solid var(--albedo); color: var(--albedo);
  background: transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--albedo); color: var(--nigredo); }
.btn.gold { border-color: var(--citrinitas); color: var(--nigredo); background: var(--citrinitas); }
.btn.gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.coords { display: flex; gap: 18px; flex-wrap: wrap; color: #77717E; }

/* Emblem in seal */
.oracle { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; max-width: 100%; }
.oracle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spin { transform-origin: 200px 200px; animation: turn 140s linear infinite; }
.spin.rev { animation-duration: 90s; animation-direction: reverse; }
.ring-t { fill: none; stroke: var(--hair); }
.tick { stroke: #4A4553; stroke-width: 1; }
.tick.major { stroke: var(--citrinitas); }
.stages { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; fill: #6E6876; }
.stages .r { fill: var(--rubedo); }
.stages .c { fill: var(--citrinitas); }
.stages .a { fill: var(--albedo); }

.em-stem { fill: var(--albedo); transform-box: fill-box; transform-origin: 50% 0; animation: stem 0.9s cubic-bezier(.6,0,.2,1) .15s both; }
.em-ring { fill: none; stroke: var(--albedo); stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6,0,.2,1) forwards; }
.em-ring.two { animation-delay: .45s; }
.em-lens { fill: var(--citrinitas); opacity: 0; animation: wake 9s ease-in-out 3s infinite; }
.em-point { fill: var(--citrinitas); transform-box: fill-box; transform-origin: center; animation: ignite .8s cubic-bezier(.2,.9,.2,1.4) 1.6s both; }
.em-halo { fill: none; stroke: var(--citrinitas); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: halo 4.5s ease-out 2.4s infinite; }
.construction { opacity: 0; transition: opacity .6s; }
.construction circle, .construction polygon, .construction line { fill: none; stroke: var(--citrinitas); stroke-width: .6; stroke-dasharray: 2 2.5; }
.construction .node { fill: var(--citrinitas); stroke: none; }
.oracle:hover .construction, .oracle:focus-within .construction, .oracle.reveal .construction { opacity: 1; }
.oracle-hint { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); color: #5E5866; white-space: nowrap; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--hair); }
.sec-head { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.sec-head h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; margin: 8px 0 0; text-wrap: balance; }
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; margin: 0; max-width: 30ch; text-wrap: balance; }
.statement .g { color: var(--gold-soft); }
.body { color: var(--muted); max-width: 62ch; margin: 22px 0 0; }

.companies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin-top: clamp(36px, 5vw, 56px); }
.co { background: var(--nigredo); padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; overflow: hidden; transition: background .35s; }
.co:hover { background: var(--nigredo-2); }
.co::after { content: ""; position: absolute; width: 220px; height: 220px; right: -110px; top: -110px; border: 1px solid var(--hair); border-radius: 50%; box-shadow: 0 0 0 40px var(--nigredo), 0 0 0 41px var(--hair); transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.co:hover::after { transform: translate(-24px, 24px); }
.co h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; margin: 6px 0 0; }
.co p { margin: 0; color: var(--muted); max-width: 44ch; }
.co a.domain { margin-top: auto; padding-top: 10px; color: var(--gold-soft); text-decoration: none; align-self: flex-start; border-bottom: 1px solid transparent; }
.co a.domain:hover { border-bottom-color: var(--gold-soft); }

.rail { margin-top: 1px; border: 1px solid var(--hair); border-top: 0; padding: clamp(20px, 3vw, 32px); overflow-x: auto; }
.rail svg { display: block; width: 100%; min-width: 620px; height: auto; }
.rail .node-r { fill: var(--nigredo); stroke: var(--albedo); stroke-width: 1; }
.rail .node-r.xrpl { stroke: var(--citrinitas); }
.rail .lbl { font-family: var(--font-display); font-size: 21px; fill: var(--albedo); }
.rail .sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; fill: var(--muted); }
.rail .path { stroke: var(--hair); stroke-width: 1; fill: none; }
.rail .flow { stroke: var(--citrinitas); stroke-width: 1; fill: none; stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }
.rail .pulse { fill: var(--citrinitas); }
.rail-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: #77717E; }

.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 56px); }
.leader { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--albedo); }
.leader h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 36px); line-height: 1.05; margin: 0; }
.leader .role { color: var(--gold-soft); }
.leader p { margin: 4px 0 0; color: var(--muted); max-width: 54ch; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.contact h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6.4vw, 84px); line-height: .98; margin: 12px 0 0; text-wrap: balance; }
.contact h2 em { font-style: italic; color: var(--gold-soft); }
.mail { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.mail .addr { font-family: var(--font-mono); font-size: clamp(15px, 2vw, 19px); padding: 14px 18px; border: 1px solid var(--hair); user-select: all; overflow-wrap: anywhere; }
#copy-status { min-height: 20px; color: var(--gold-soft); }
.seal-sm { width: clamp(110px, 16vw, 168px); height: auto; color: var(--albedo); animation: turn 200s linear infinite; }

footer { border-top: 1px solid var(--hair); padding-block: 28px 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #77717E; }
.opus { display: flex; gap: 6px; }
.opus i { width: 10px; height: 10px; display: block; border: 1px solid var(--hair); }

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes stem { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ignite { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes halo { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
@keyframes wake { 0%, 78%, 100% { opacity: 0; } 84%, 92% { opacity: .92; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -24; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .oracle { width: min(360px, 100%); order: -1; }
  .sec-head, .companies, .leaders, .contact { grid-template-columns: minmax(0, 1fr); }
  .seal-sm { justify-self: start; }
  .bar nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .em-lens { opacity: 0 !important; }
  .em-halo { opacity: 0 !important; }
}
/* ---- multi-page additions ---- */
.bar nav a[aria-current="page"] { color: var(--albedo); }
.band { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:1px; background:var(--hair); border:1px solid var(--hair); }
.band a { background:var(--nigredo); padding: clamp(26px,3.6vw,44px); text-decoration:none; display:flex; flex-direction:column; gap:12px; min-width:0; position:relative; overflow:hidden; transition: background .35s; }
.band a:hover { background: var(--nigredo-2); }
.band h3 { font-family:var(--font-display); font-weight:500; font-size: clamp(30px,3.6vw,44px); line-height:1; margin:4px 0 0; }
.band p { margin:0; color:var(--muted); max-width:44ch; }
.band .go { margin-top:auto; padding-top:10px; color:var(--gold-soft); }
.band a:hover .go { text-decoration: underline; text-underline-offset: 4px; }

.page-head { padding-block: clamp(32px,6vw,72px) clamp(40px,6vw,72px); display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:end; }
.page-head h1 { font-family:var(--font-display); font-weight:500; font-size: clamp(48px,8vw,104px); line-height:.95; margin:14px 0 0; text-wrap:balance; }
.page-head h1 em { font-style:italic; color:var(--gold-soft); }
.page-head .lede { margin-top:22px; }
.page-head .mini { width: clamp(72px,10vw,120px); height:auto; color: var(--albedo); opacity:.9; animation: turn 160s linear infinite; }

.founder { display:grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px,5vw,72px); align-items:start; padding-block: clamp(48px,7vw,96px); border-top:1px solid var(--hair); }
.founder.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.founder.flip .portrait { order:2; }
.portrait { position:relative; margin:0; aspect-ratio: 4/5; max-width:100%; isolation:isolate; }
.portrait img { width:100%; height:100%; object-fit:cover; display:block; filter: grayscale(.15) contrast(1.04); }
.portrait::before { content:""; position:absolute; inset:-14px 14px 14px -14px; border:1px solid var(--citrinitas); z-index:-1; transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.founder.flip .portrait::before { inset:-14px -14px 14px 14px; }
.portrait:hover::before { transform: translate(8px,-8px); }
.portrait::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(14,13,18,.55)); pointer-events:none; }
.portrait figcaption { position:absolute; left:18px; bottom:16px; z-index:2; color: var(--albedo); }
.bio { min-width:0; display:flex; flex-direction:column; gap:16px; }
.bio h2 { font-family:var(--font-display); font-weight:600; font-size: clamp(40px,5.4vw,68px); line-height:.98; margin:6px 0 0; }
.bio .role { color: var(--gold-soft); }
.bio p { margin:0; color: var(--muted); max-width: 62ch; }
.bio p:first-of-type { color: var(--albedo); font-family: var(--font-display); font-size: clamp(20px,2.2vw,25px); line-height:1.4; }
.bio .tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.bio .tags span { border:1px solid var(--hair); padding:6px 10px; color: var(--muted); }

.ir { display:grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px,5vw,72px); align-items:start; padding-block: clamp(40px,6vw,88px); border-top:1px solid var(--hair); }
.ir-aside { display:flex; flex-direction:column; gap:22px; min-width:0; }
.ir-aside h2 { font-family:var(--font-display); font-weight:500; font-size: clamp(30px,3.6vw,42px); line-height:1.05; margin:0; }
.ir-aside p { margin:0; color: var(--muted); }
.thesis-list { display:flex; flex-direction:column; border-top:1px solid var(--hair); }
.thesis-list div { display:grid; grid-template-columns: 34px minmax(0,1fr); gap:12px; padding-block:14px; border-bottom:1px solid var(--hair); }
.thesis-list b { font-family: var(--font-mono); font-weight:500; color: var(--gold-soft); }
.thesis-list span { color: var(--albedo); }
.legal { font-size:12.5px; line-height:1.6; color:#77717E; }

form.ir-form { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; border:1px solid var(--hair); padding: clamp(22px,3.4vw,40px); background: rgba(21,19,27,.72); backdrop-filter: blur(6px); }
.field { display:flex; flex-direction:column; gap:8px; min-width:0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font: 600 11.5px/1.3 var(--font-body); letter-spacing:.16em; text-transform:uppercase; color: var(--muted); padding:0; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--font-body); color: var(--albedo); background: var(--nigredo);
  border: 1px solid #3A3642; border-radius: 0; padding: 13px 14px; width:100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--citrinitas); box-shadow: 0 0 0 3px rgba(201,161,59,.18); }
.field input::placeholder, .field textarea::placeholder { color:#5E5866; }
fieldset.field { border:0; margin:0; padding:0; }
.checks { display:flex; flex-wrap:wrap; gap:10px; }
.checks label { display:flex; align-items:center; gap:8px; border:1px solid #3A3642; padding:10px 14px; cursor:pointer; text-transform:none; letter-spacing:0; font: 400 15px/1 var(--font-body); color: var(--albedo); }
.checks input { accent-color: var(--citrinitas); width:16px; height:16px; }
.checks label:has(input:checked) { border-color: var(--citrinitas); }
.field label.attest { text-transform:none; letter-spacing:0; font:400 14px/1.5 var(--font-body); }
.attest { display:flex; gap:12px; align-items:flex-start; color: var(--muted); font-size:14px; }
.attest input { accent-color: var(--citrinitas); width:18px; height:18px; margin-top:3px; flex:none; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-foot { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.form-msg { min-height: 22px; }
.form-msg.ok { color: var(--gold-soft); }
.form-msg.err { color: #E07A70; }
.field .err-text { color:#E07A70; font-size:13px; min-height:0; }
.done { grid-column:1/-1; display:flex; flex-direction:column; gap:12px; align-items:flex-start; padding-block: 24px; }
.done h3 { font-family:var(--font-display); font-weight:500; font-size:36px; margin:0; }
.done p { margin:0; color:var(--muted); max-width:52ch; }

@media (max-width: 860px) {
  .band, .founder, .founder.flip, .ir, .page-head { grid-template-columns: minmax(0,1fr); }
  .founder.flip .portrait { order:0; }
  .portrait { width: min(420px, calc(100% - 14px)); margin-left: 14px; }
  form.ir-form { grid-template-columns: minmax(0,1fr); }
  .page-head .mini { display:none; }
  .bar nav { display:flex !important; gap:14px; font-size:10.5px; letter-spacing:.12em; }
}
