/* Amelix Solutions — public site
   Palette comes from the mark: plum ink, amber, magenta, violet, blue.
   One bold moment (the hero headline); everything else quiet. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f2efe9;
  --ink: #241a33;
  --ink-2: #4a3f5c;
  --ink-3: #7a7190;
  --line: #e4dfd8;
  --amber: #f5a524;
  --magenta: #d9268f;
  --violet: #6b2fd6;
  --blue: #2f6fe6;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .01em; }
.brand img { width: 30px; height: 36px; object-fit: contain; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; font-size: 15.5px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .signin {
  color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px;
  transition: background .2s, color .2s;
}
.nav .signin:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .nav a:not(.signin) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 110px); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 9.4vw, 128px);
  line-height: .96;
  letter-spacing: -.025em;
  margin: 0 0 40px;
  max-width: 11ch;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.hero h1 .flame {
  font-style: italic;
  background: linear-gradient(100deg, var(--amber) 0%, var(--magenta) 38%, var(--violet) 70%, var(--blue) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: breathe 9s ease-in-out infinite alternate;
  padding-right: .06em; /* keep the italic tail from clipping */
}
@keyframes breathe { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero .lede {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34ch;
  margin: 0;
}
.hero .lede b { color: var(--ink); font-weight: 600; }

/* ---------- manifesto ---------- */
.manifesto { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0; }
.manifesto .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.manifesto .mark { width: min(220px, 40vw); margin-top: 6px; }
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.38;
  font-weight: 300;
  margin: 0 0 1.1em;
  max-width: 30ch;
  font-variation-settings: "opsz" 36;
}
.manifesto p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .manifesto .wrap { grid-template-columns: 1fr; } }

/* ---------- products ---------- */
.products-intro { padding: clamp(40px, 6vw, 80px) 0 28px; }
.products-intro h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.02em; margin: 0 0 10px; }
.products-intro p { color: var(--ink-2); margin: 0; max-width: 52ch; }

.product { padding: clamp(56px, 8vw, 120px) 0; }
.product .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.product.flip .copy { order: 2; }
.product h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.02em; line-height: 1; margin: 0 0 14px; }
.product .tag { font-size: 15px; margin: 0 0 22px; opacity: .75; }
.product .pitch { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; margin: 0 0 26px; max-width: 42ch; }
.product ul { list-style: none; padding: 0; margin: 0 0 30px; max-width: 46ch; }
.product li { padding: 11px 0; border-top: 1px solid var(--p-line); font-size: 16px; }
.product li:last-child { border-bottom: 1px solid var(--p-line); }
.product .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--p-btn);
  background: var(--p-btn); color: var(--p-btn-text);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border-color: var(--p-line); }
.soon { font-size: 14.5px; opacity: .7; }
.shot { border-radius: 18px; overflow: hidden; }
.shot img { width: 100%; }
@media (max-width: 820px) {
  .product .wrap { grid-template-columns: 1fr; }
  .product.flip .copy { order: 0; }
}

/* Each product lives in its own material. */
.letteris {
  --p-line: #dcd3c4; --p-btn: #1d3a3a; --p-btn-text: #f6f1e6;
  background: #ece6d8; color: #1d2a2a;
}
.letteris .shot { background: #fff; padding: 0; border: 1px solid #dcd3c4; }
/* Letteris has no public screenshot yet: a typographic "letter" takes its place. */
.letter {
  background: #fffdf8; border: 1px solid #e4dccb; border-radius: 6px;
  padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) 40px; font-family: var(--serif); color: #2b2b2b;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .35);
  transform: rotate(-1.2deg);
  max-width: 440px; margin: 0 auto;
}
.letter .from { font-size: 13px; color: #8a8273; margin-bottom: 18px; font-family: var(--sans); }
.letter .body { font-size: 15px; line-height: 1.6; }
.letter .body p { margin: 0 0 .8em; }
.summary {
  background: #1d3a3a; color: #e8f1ee; border-radius: 14px; padding: 18px 20px; font-family: var(--sans);
  max-width: 380px; margin: -22px 0 0 auto; position: relative; transform: rotate(1deg);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45);
}
.summary .k { font-size: 12.5px; color: #9fc3b8; margin-bottom: 6px; }
.summary .v { font-size: 15px; line-height: 1.45; margin: 0 0 12px; }
.summary .v:last-child { margin: 0; }
.summary .chip { display: inline-block; background: #2b5252; border-radius: 6px; padding: 3px 8px; font-size: 13px; margin-right: 6px; }

.bartersci {
  --p-line: #2a3358; --p-btn: #ffffff; --p-btn-text: #121733;
  background: #121733; color: #e9ecfb;
}
.bartersci .tag, .bartersci .soon { color: #aab3df; opacity: 1; }
.bartersci .shot { background: #0c1026; }

.gyrolith {
  --p-line: #2a2a33; --p-btn: #f5c518; --p-btn-text: #121214;
  background: #0f0f12; color: #f1efe8;
}
.gyrolith .tag, .gyrolith .soon { color: #a6a3b3; opacity: 1; }
.gyrolith .shot { background: #000; }

/* ---------- how we work ---------- */
.how { padding: clamp(64px, 9vw, 130px) 0; }
.how h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.02em; margin: 0 0 40px; max-width: 18ch; }
.how .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.how h4 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 10px; }
.how p { margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 34ch; }
@media (max-width: 760px) { .how .cols { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { background: var(--paper-2); padding: clamp(64px, 9vw, 130px) 0; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.02em; margin: 0 0 16px; }
.contact p { color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
.contact .mail {
  font-family: var(--serif); font-size: clamp(22px, 3.6vw, 44px); letter-spacing: -.01em;
  text-decoration: none; border-bottom: 2px solid var(--magenta); padding-bottom: 2px;
  word-break: break-all;
}
.contact .mail:hover { border-bottom-color: var(--violet); }

/* ---------- footer ---------- */
footer { padding: 36px 0 44px; font-size: 14.5px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- legal page ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.02em; margin: 0 0 8px; }
.legal .updated { color: var(--ink-3); margin: 0 0 40px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 56px 0 18px; letter-spacing: -.01em; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.legal p.caps { font-size: 14.5px; letter-spacing: .01em; }
.legal ul { padding-left: 20px; }
.legal dt { font-weight: 600; margin-top: 14px; }
.legal dd { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- motion ---------- */
.hero h1, .hero .lede { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .lede { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero .lede, .hero h1 .flame { animation: none; }
  .btn { transition: none; }
}

/* NULLSHIFT: industrial void — dark panel, cyan accent, monospace tag. */
.nullshift { background: #0b0d12; color: #e8ecf2; --p-line: #232838; --p-btn: #38e8ff; --p-btn-text: #0b0d12; }
.nullshift h3, .nullshift .pitch { color: #e8ecf2; }
.nullshift .tag, .nullshift .soon { color: #38e8ff; opacity: 1; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.nullshift ul { color: #c3cad6; }
.nullshift .textlink { color: #38e8ff; margin-left: 14px; font-size: 14.5px; }
.actions .textlink { text-decoration: underline; text-underline-offset: 3px; }

/* VEXIL: banners and horns — ink panel, gold accent, Fraunces wordmark (the game's own). */
.vexil { --p-line: #2b2e3b; background: #14161f; color: #efe8d6; }
.vexil h3 { color: #d4ac4f; }
.vexil .pitch { color: #efe8d6; }
.vexil .tag, .vexil .soon { color: #d4ac4f; opacity: 1; }
.vexil ul { color: #c9c3b3; }
.vexil .textlink { color: #d4ac4f; margin-left: 14px; font-size: 14.5px; }
.vexil .shot { max-width: 360px; justify-self: center; border-radius: 22%; }
