/* Marlune Technologies LLC — site styles
   No external dependencies. No web fonts. No trackers. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- tokens ---------- */
:root {
  --bg:        #fbfbfc;
  --bg-alt:    #f4f5f8;
  --surface:   #ffffff;
  --ink:       #0e1116;
  --ink-2:     #2c333f;
  --muted:     #616b7c;
  --line:      #e3e6ec;
  --line-soft: #eef0f4;
  --accent:    #3a44c8;
  --accent-2:  #5b64e8;
  --accent-ink:#ffffff;
  --accent-wash:#eeeffc;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", "Source Serif 4", "Source Serif Pro", "Noto Serif", "DejaVu Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1140px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14,17,22,.04), 0 8px 28px -12px rgba(14,17,22,.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0a0c11;
    --bg-alt:    #0f1218;
    --surface:   #12151d;
    --ink:       #e9ebf1;
    --ink-2:     #c3c9d6;
    --muted:     #8f98a9;
    --line:      #212632;
    --line-soft: #191d27;
    --accent:    #8b95ff;
    --accent-2:  #a3abff;
    --accent-ink:#0a0c11;
    --accent-wash:#161a2b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 34px -14px rgba(0,0,0,.7);
  }
}

/* ---------- base ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -.012em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.05rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.16rem, 1.8vw, 1.38rem); line-height: 1.3; }
p  { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }

a.link { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); transition: border-color .18s, color .18s; }
a.link:hover { border-bottom-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; border-radius: 0 0 8px 0; font-size: .92rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- eyebrow / meta type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .705rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; flex: none;
}
.eyebrow.plain::before { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; flex: none; }
.brand .mark { width: 27px; height: 27px; flex: none; }
.brand .name {
  font-family: var(--serif); font-size: 1.145rem; font-weight: 600; letter-spacing: -.014em; white-space: nowrap;
}
.brand .name span { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  text-decoration: none; font-size: .925rem; color: var(--ink-2);
  padding: .5rem .78rem; border-radius: 8px; transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta {
  margin-left: .5rem; padding: .52rem 1.05rem !important;
  border: 1px solid var(--line); border-radius: 999px; font-weight: 550;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; background: transparent !important; }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: .48rem .6rem; cursor: pointer; line-height: 0;
}
.menu-btn svg { width: 19px; height: 19px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .82rem .25rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; }
  .nav-cta { margin: .9rem 0 0; text-align: center; border-radius: 999px !important; border: 1px solid var(--line) !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: 999px;
  font-size: .95rem; font-weight: 560; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), background .18s, border-color .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn svg { width: 15px; height: 15px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(3.25rem, 6vw, 5.25rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.sec-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.sec-head .eyebrow { margin-bottom: 1.15rem; }
.sec-head p { color: var(--muted); font-size: 1.075rem; margin-top: 1.1rem; }

.lede { font-size: clamp(1.1rem, 1.85vw, 1.32rem); line-height: 1.6; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(4.25rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 780px; height: 780px; top: -400px; right: -180px;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 66%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; margin-top: 1.6rem; }
.hero .lede { max-width: 56ch; margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0 2.75rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.hero-meta div { padding-block: .5rem; }
.hero-meta dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: .3rem 0 0; font-size: .955rem; color: var(--ink-2); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.85rem 1.7rem;
  transition: border-color .2s, transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .idx { font-family: var(--mono); font-size: .7rem; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 1.1rem; }
.card .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 1.15rem; }

/* numbered principle rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1.75rem;
  padding-block: 2rem; border-bottom: 1px solid var(--line);
  align-items: start;
}
.row .num { font-family: var(--mono); font-size: .74rem; color: var(--accent); padding-top: .45rem; letter-spacing: .08em; }
.row h3 { margin-bottom: .55rem; }
.row p { color: var(--muted); max-width: 62ch; font-size: .975rem; }
@media (max-width: 620px) {
  .row { grid-template-columns: 1fr; gap: .75rem; }
  .row .num { padding-top: 0; }
}

/* split feature */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .body p + p { margin-top: 1.1rem; }
.split .body p { color: var(--muted); }

/* fact panel */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}
.panel dl { display: grid; gap: 0; }
.panel dl > div { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 1rem; padding-block: .95rem; border-bottom: 1px solid var(--line-soft); }
.panel dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.panel dl > div:first-child { padding-top: 0; }
.panel dt { font-size: .82rem; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; padding-top: .12rem; }
.panel dd { margin: 0; font-size: .96rem; color: var(--ink-2); }
@media (max-width: 560px) { .panel dl > div { grid-template-columns: 1fr; gap: .2rem; } }

/* status pills */
.pill {
  display: inline-flex; align-items: center; gap: .42rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .62rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--bg-alt);
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.build { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 34%, transparent); background: var(--accent-wash); }

/* prose (legal + long-form) */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.72rem); margin-top: 3rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.005rem; }
.prose p + p { margin-top: 1.05rem; }
.prose ul, .prose ol { margin: 1.05rem 0; padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 620; color: var(--ink); }
.prose .updated { font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.prose address { font-style: normal; color: var(--ink-2); }

/* page header band */
.page-head { padding-block: clamp(3.25rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.75rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); margin-top: 1.35rem; max-width: 20ch; }
.page-head .lede { margin-top: 1.4rem; max-width: 62ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.contact-block + .contact-block { margin-top: 2.25rem; }
.contact-block h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.contact-block p, .contact-block address { color: var(--muted); font-size: .96rem; font-style: normal; }
.contact-block a { color: var(--accent); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

/* CTA band */
.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(2.25rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow);
}
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { color: var(--muted); max-width: 52ch; margin: 1.1rem auto 0; }
.cta .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 2.5rem 2rem; }
.foot-brand .brand { margin-bottom: 1.1rem; }
.foot-brand p { color: var(--muted); font-size: .93rem; max-width: 34ch; }
.foot-brand address { font-style: normal; color: var(--muted); font-size: .9rem; margin-top: 1.1rem; line-height: 1.7; }
.foot-col h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .95rem; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.foot-col a { text-decoration: none; font-size: .93rem; color: var(--ink-2); transition: color .18s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; justify-content: space-between; align-items: center;
}
.foot-bottom p, .foot-bottom a { font-size: .84rem; color: var(--muted); text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- reveal ----------
   Deliberately inverted: content is visible by DEFAULT. The hidden starting
   state applies only once marlune.js has confirmed it is running by putting
   .js on <html>. If the script is blocked, fails to load, or JavaScript is off
   entirely, every section stays fully visible — the animation is an
   enhancement, never a condition for reading the page. */
.reveal { opacity: 1; transform: none; }

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}
