/* monoraft — landing page styles */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #000000;
  --paper: #FFFFFF;
  --rule: rgba(0, 0, 0, 0.14);
  --muted: rgba(0, 0, 0, 0.6);
  --muted-2: rgba(0, 0, 0, 0.5);
  --muted-3: rgba(0, 0, 0, 0.45);
  --muted-4: rgba(0, 0, 0, 0.4);
  --body: rgba(0, 0, 0, 0.7);
  --sans: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

/* ---------- Utilities ---------- */
.shell { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 6px;
  font-family: var(--mono); font-size: 13px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; color: var(--paper); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.stripe {
  background-image: repeating-linear-gradient(45deg,
    rgba(0, 0, 0, 0.05) 0, rgba(0, 0, 0, 0.05) 1px,
    transparent 1px, transparent 9px);
}

/* ---------- Reveal animation ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-reveal] { opacity: 0; }
[data-reveal].is-in { animation: rise 0.85s var(--ease) forwards; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }

/* ---------- Links & buttons ---------- */
.link { position: relative; }
.link::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-block;
  font-weight: 500; font-size: 15px;
  color: var(--paper); background: var(--ink);
  padding: 15px 26px; border-radius: 6px;
  transition: transform 0.35s var(--ease), background 0.35s ease, color 0.35s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--paper); }
.btn--invert { color: var(--ink); background: var(--paper); }
.btn--invert:hover { color: var(--ink); }
.btn--sm {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 5px;
}

.btn-text {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.04em; color: var(--ink); padding: 15px 2px;
}

/* ---------- Nav ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0 22px; border-bottom: 1px solid var(--rule);
}
.nav__brand { font-weight: 600; font-size: 19px; letter-spacing: 0.02em; }
.nav__links {
  display: flex; align-items: center; gap: 32px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.nav__links a:not(.btn) { color: var(--muted); }

/* ---------- Section scaffolding ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--rule); }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 44px; gap: 24px; flex-wrap: wrap;
}
.section__num {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
}
.section__note {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--muted-4);
}

/* ---------- Hero ---------- */
.hero { padding: 120px 0 96px; display: flex; flex-direction: column; gap: 34px; }
.hero__eyebrow {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
}
.hero__title {
  font-weight: 600; font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1.02; letter-spacing: -0.02em;
  max-width: 15ch; text-wrap: pretty;
}
.hero__lede {
  font-family: var(--mono); font-size: 15px; line-height: 1.8;
  letter-spacing: 0.01em; color: var(--muted); max-width: 62ch;
}
.hero__actions {
  display: flex; gap: 14px; align-items: center;
  margin-top: 6px; flex-wrap: wrap;
}

/* ---------- Manifesto ---------- */
.manifesto {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 48px;
  padding: 64px 0; border-top: 1px solid var(--rule);
}
.manifesto__label { display: flex; flex-direction: column; gap: 12px; }
.manifesto__label span:last-child {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.02em; color: var(--muted-4); line-height: 1.7;
}
.statement {
  font-weight: 500; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4; letter-spacing: -0.01em;
  max-width: 30ch; text-wrap: pretty;
}
.statement .dim { color: rgba(0, 0, 0, 0.45); }

/* ---------- Services grid ---------- */
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  border-radius: 6px; overflow: hidden;
}
.cell {
  background: var(--paper); padding: 40px 36px;
  display: flex; flex-direction: column; gap: 14px; min-height: 220px;
  transition: background 0.4s ease, color 0.4s ease;
}
.cell:hover { background: var(--ink); color: var(--paper); }
.cell:hover .cell__body { color: rgba(255, 255, 255, 0.7); }
.cell:hover .cell__tag { color: rgba(255, 255, 255, 0.5); }
.cell__tag {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; color: var(--muted-4);
}
.cell__title { font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.cell__body { font-size: 15px; line-height: 1.75; color: var(--body); max-width: 44ch; }

/* ---------- Open Source ---------- */
.oss-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  border-radius: 6px; overflow: hidden;
}
.oss-card {
  background: var(--paper); padding: 40px 36px;
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: var(--ink);
  transition: background 0.35s ease;
}
.oss-card:hover { background: rgba(0, 0, 0, 0.03); }
.oss-card:hover .oss-card__link { color: var(--ink); }
.oss-card__logo { height: 40px; width: auto; object-fit: contain; align-self: flex-start; }
.oss-card__name { font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.oss-card__desc { font-size: 15px; line-height: 1.75; color: var(--body); max-width: 44ch; flex: 1; }
.oss-card__link {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-4);
  margin-top: auto; transition: color 0.35s ease;
}

/* ---------- Work / coming soon ---------- */
.panel {
  border: 1px solid var(--rule); border-radius: 8px;
  padding: clamp(56px, 9vw, 120px) 40px;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; text-align: center;
}
.panel__kicker {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-3);
}
.panel__title {
  font-weight: 600; font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.02em; line-height: 1.05; max-width: 18ch;
}
.panel__body {
  font-family: var(--mono); font-size: 14px; line-height: 1.8;
  color: var(--muted); max-width: 52ch;
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.founder__card { display: flex; flex-direction: column; gap: 16px; }
.founder__portrait {
  aspect-ratio: 4 / 5; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.founder__initials {
  font-weight: 600; font-size: clamp(48px, 6.5vw, 78px);
  letter-spacing: -0.02em; line-height: 1;
}
.founder__disciplines {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-3);
}
.founder__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.founder__name { font-weight: 600; font-size: 16px; }
.founder__role {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-3);
}
.founder__bio { display: flex; flex-direction: column; gap: 24px; }
.founder__bio blockquote {
  font-weight: 500; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4; letter-spacing: -0.01em; max-width: 30ch; text-wrap: pretty;
}
.founder__bio p { font-size: 15px; line-height: 1.8; color: var(--body); max-width: 56ch; }
.founder__links {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; padding-top: 4px;
}
.founder__links a { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.faq__item { background: var(--paper); padding: 32px 36px; display: flex; flex-direction: column; gap: 12px; }
.faq__q { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.faq__a { font-size: 15px; line-height: 1.8; color: var(--body); max-width: 68ch; }

/* ---------- CTA ---------- */
.cta-section { padding: 8px 0 96px; border-top: 1px solid var(--rule); }
.cta {
  background: var(--ink); border-radius: 8px;
  padding: clamp(48px, 7vw, 88px);
  display: flex; flex-direction: column; gap: 28px;
  align-items: flex-start; margin-top: 64px;
}
.cta__kicker {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.cta__title {
  font-weight: 600; font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--paper); max-width: 18ch; text-wrap: pretty;
}
.cta__body {
  font-family: var(--mono); font-size: 14px; line-height: 1.8;
  color: rgba(255, 255, 255, 0.6); max-width: 56ch;
}
.cta__actions { display: flex; gap: 14px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.cta__note {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.5);
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0 64px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 20px;
}
.footer__brand { display: flex; flex-direction: column; gap: 6px; }
.footer__brand strong { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.footer__brand span {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.02em; color: var(--muted-2);
}
.footer__links {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
}
.footer__links a { color: var(--muted-2); }
.footer__copy { color: rgba(0, 0, 0, 0.35); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell { padding: 0 24px; }
}
@media (max-width: 720px) {
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .oss-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 40px; }
  .nav__links { gap: 18px; }
  .nav__hide { display: none; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal].is-in { opacity: 1 !important; animation: none !important; }
  .btn:hover, .cell, .link::after { transition: none; }
  .btn:hover { transform: none; }
}
