/* Rational Mystic L.L.C. -- corporate site.
   A threshold, not a directory. Dark, spare, deliberate.
   No frameworks. No build step. No JavaScript. */

:root {
  --void: #0a0908;        /* deep warm charcoal -- the ground */
  --void-2: #14110f;      /* slightly raised surface */
  --signal: #d4af37;      /* gold/amber -- links */
  --signal-dim: #8a7223;  /* muted gold for hairlines */
  --structure: #e5e5e0;   /* bone/cream -- primary text */
  --structure-dim: #9a9a92;

  --hairline: #1c1916;    /* the faintest rule on the Void */

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* The Void lives on the body -- the ground the dark gathers on. */
  background: var(--void);
  color: var(--structure);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Layout primitive -----
   A narrow column. The dark around it is most of the page. */
.wrap {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Wider variant for the Work section -- the three columns need more
   horizontal room than the single-column copy elsewhere. */
.wrap-work {
  max-width: 920px;
}

/* ----- Header -- the wordmark -----
   Near-empty: the wordmark, a hairline, nothing else. Generous
   space above and below so it reads as a masthead at night. */
header {
  border-bottom: 1px solid var(--hairline);
}
header .wrap {
  padding-top: 22px;
  padding-bottom: 22px;
}

/* Masthead is now a single locked SVG (rm-masthead.svg) -- mark,
   em-dash bridge, wordmark, and byline all baked in at fixed
   proportions. The .masthead-link wraps the image for the home
   anchor; .masthead-img controls displayed size. */
.masthead-link {
  display: inline-block;
  text-decoration: none;
  border-bottom: none;
  line-height: 0;
}
.masthead-link:hover { border-bottom: none; }
/* Masthead = legacy RATIONAL/MYSTIC wordmark (transparent PNG) +
   Astrolabe mark to its right, with the tagline byline stacked beneath. */
.masthead-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.masthead-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  border-bottom: none;
}
.masthead-link:hover { border-bottom: none; }

/* Tagline byline under the logo. Mono, dim gold, letter-spaced --
   the same treatment as the "2026" tag, so they read as a pair. */
.masthead-byline {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-dim);
  line-height: 1;
}
.masthead-wordmark {
  display: block;
  width: clamp(240px, 34vw, 400px);
  height: auto;
}
.masthead-mark {
  display: block;
  width: clamp(38px, 5vw, 56px);
  height: clamp(38px, 5vw, 56px);
  flex-shrink: 0;
}

/* Legacy classes left in place in case we revert: .masthead,
   .masthead .mark, .masthead-text, .wordmark, .byline. They no
   longer match anything in the live HTML. */

/* The wordmark, styled HTML text. Playfair Display, roman (not
   italic) -- a masthead is timeless and plain-faced, italic would
   tip toward decorative. Light weight (400) and open tracking give
   it the quiet authority of an engraved name; small caps would read
   as a logo trick. Set in Structure cream so it sits on the Void
   without glare. */
.wordmark {
  display: inline-block;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--structure);
}

/* The header row -- masthead left, status tag right. Aligned on
   the optical center so mark + tag read on the same horizon. */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* The status tag -- mono, dim gold, letter-spaced. Tiny. The point
   is that you almost miss it. Reads as a footnote on the masthead,
   not an announcement. */
.status-tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-dim);
  white-space: nowrap;
}

/* ----- Sections -----
   Vertical air, but not wasteful. The Void around the column does
   most of the breathing room; sections only need enough padding to
   read as distinct surfaces. */
section {
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
section:first-of-type { border-top: none; }

/* ----- Links ----- */
a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}
a:hover {
  border-bottom-color: var(--signal);
  color: var(--structure);
}
a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

/* ----- Statement -----
   An opening line + the Rule 30 canvas as a 2-column unit. Text
   reads into the three columns of fields below; canvas runs to
   its right as the visual thesis. Stacks on narrow viewports. */
.statement {
  padding-top: 48px;
  padding-bottom: 40px;
}
.statement-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}
.statement-text { min-width: 0; }
.statement-canvas {
  margin: 0;
  min-width: 0;
}
.statement-canvas #rm-canvas-container {
  height: 240px;
  /* Faint gold rim picks up the canvas core and ties the panel back
     to the Signal palette without competing with the content. */
  border: 1px solid var(--hairline);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--structure);
  margin: 0;
}
/* The second sentence sits on its own line, a touch dimmer -- the
   name is stated, then the fields named under it. */
.statement-fields {
  display: block;
  margin-top: 0.5em;
  color: var(--structure-dim);
}

/* The sub-line under the statement -- mono, dim, set apart by
   measured space. "Selectively visible. Inquire if curious." */
.statement-sub {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-dim);
}

/* ----- Close -- caption + founder, stacked ----- */
.close .caption {
  margin: 0 0 24px;
  max-width: 60ch;
  text-align: left;
}
.close .founder-line {
  margin: 0;
}

/* The doorway image -- the anchor. A full-width band that dissolves
   into the Void top and bottom, so it reads as a light source the
   dark gathers around rather than a framed picture. */
.vision-image {
  margin: 0;
  position: relative;
}
.vision-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  object-position: center 42%;
}

/* The Rule 30 emanation canvas container -- same envelope as the
   prior image: full-bleed width, capped height, gradient dissolve
   top and bottom into the Void via .vision-image::before/::after. */
#rm-canvas-container {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--void);
}
#rm-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.vision-image::before,
.vision-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
}
.vision-image::before {
  top: 0;
  background: linear-gradient(to bottom, var(--void), transparent);
}
.vision-image::after {
  bottom: 0;
  background: linear-gradient(to top, var(--void), transparent);
}

/* (Former .vision .wrap padding rule removed -- caption now lives in
   .close section which uses default .wrap rules.) */

.caption {
  margin: 0 auto;
  max-width: 52ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
  color: var(--structure-dim);
}

/* ----- The work -----
   Three columns side by side: AI & Cyber | Forecasting | Software.
   On narrow viewports, collapses to a single column stack. */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: start;
}

.field {
  margin-top: 0;
}
.field:first-child { margin-top: 0; }

.field-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--structure);
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.properties {
  list-style: none;
  margin: 0;
  padding: 0;
}

.property {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.property:first-child { border-top: none; }

.prop-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 3px;
}
a.prop-name { color: var(--signal); }
a.prop-name:hover { color: var(--structure); }
/* An unlinked property reads as a stated fact, not a dead link. */
span.prop-name { color: var(--structure); }

.prop-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--structure-dim);
  max-width: 54ch;
}

/* Status pill -- "In development.", "By introduction.", "Names
   withheld until launch." Inline, mono, tiny, dim gold. Sits at the
   end of a property description as a quiet timestamp. */
.status {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-dim);
  vertical-align: 1px;
}

/* ----- Founder -- one line ----- */
.founder-line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.5;
  color: var(--structure);
  margin: 0;
  max-width: 54ch;
}

/* ----- Footer ----- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 56px;
}

/* Footer seal is now a single locked SVG (rm-seal.svg) -- mark
   above the "Rational Mystic L.L.C." wordmark, proportions baked
   in. Centered as the closing signature above the breath line. */
.footer-seal-svg {
  display: block;
  margin: 0 auto 32px;
  width: clamp(180px, 24vw, 240px);
  height: auto;
}

/* Legacy: .footer-seal, .footer-mark, .footer-wordmark kept for
   revert; no longer matched in the live HTML. */

/* The closing breath -- one small line above the legal block. */
.breath {
  margin: 0 0 32px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal-dim);
  text-align: center;
}

.legal {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.foot-line {
  margin: 0 0 5px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--structure-dim);
}
.foot-line:last-child { margin-bottom: 0; }
.foot-line a { color: var(--signal-dim); }
.foot-line a:hover { color: var(--structure); border-bottom-color: var(--signal-dim); }

/* ----- Responsive: single-column always; padding + scale only ----- */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  header .wrap { padding-top: 18px; padding-bottom: 18px; }
  section { padding: 40px 0; }
  .statement { padding-top: 48px; padding-bottom: 36px; }
  .vision { padding-top: 0; padding-bottom: 40px; }
  .vision .wrap { padding-top: 28px; }
  .vision-image img { max-height: 180px; }
  #rm-canvas-container { height: 200px; }
  .statement-canvas #rm-canvas-container { height: 200px; }
  .vision-image::before, .vision-image::after { height: 46px; }
  .statement-grid { grid-template-columns: 1fr; gap: 24px; }
  .fields-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-row { gap: 14px; }
  .status-tag { font-size: 9px; letter-spacing: 0.18em; }
  .masthead .mark { width: 26px; height: 26px; }
  .masthead { gap: 10px; }
  .masthead-text { gap: 4px; }
  .byline { font-size: 9px; letter-spacing: 0.18em; }
  .footer-mark { width: 32px; height: 32px; }
  .footer-wordmark { font-size: 14px; }
  .footer-seal { margin-bottom: 26px; }
  .field { margin-top: 28px; }
  footer { padding: 36px 0 44px; }
  .breath { margin-bottom: 24px; }
}

/* Reduced motion -- honored explicitly. CSS transitions are killed. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
