/* Neloza — neloza.com */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Only the glyphs of the Qyniva wordmark. */
@font-face {
  font-family: "Qyniva Wordmark";
  src: url("/fonts/bricolage-qyniva.woff2") format("woff2");
  font-weight: 800;
  font-display: block;
}

:root {
  --bg: #F6F4EF;
  --bg-2: #EFECE5;
  --surface: #FFFFFF;
  --ink: #16150F;
  --ink-2: #3A3830;
  --muted: #5F5B52;
  --line: #E0DCD2;
  --line-strong: #CFCABE;
  --accent: #245B4C;
  --accent-soft: rgba(36, 91, 76, 0.10);
  --on-accent: #F6F4EF;

  --band: #14140F;
  --band-ink: #F2EFE8;
  --band-muted: #A9A498;
  --band-line: rgba(242, 239, 232, 0.12);

  --q-bg: #0C0B0A;
  --q-surface: #171513;
  --q-ink: #F6EFE4;
  --q-muted: #B7AEA2;
  --q-amber: #F0A93B;
  --q-on-amber: #1A1206;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --maxw: 1180px;
  --radius: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F0D;
    --bg-2: #161613;
    --surface: #1B1B18;
    --ink: #F2EFE8;
    --ink-2: #D9D5CB;
    --muted: #A7A297;
    --line: #2A2925;
    --line-strong: #3A3833;
    --accent: #8CCBB6;
    --accent-soft: rgba(140, 203, 182, 0.12);
    --on-accent: #0F0F0D;

    --band: #171714;
    --band-line: rgba(242, 239, 232, 0.10);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.display, .title, .vision-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display em, .title em, .vision-title em { font-style: italic; }
.display em, .title em { color: var(--accent); }

.display {
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 0.98;
  max-width: 11.5ch;
}
.title {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
}

.eyebrow, .kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.eyebrow-sep { width: 22px; height: 1px; background: var(--line-strong); }
.kicker { margin-bottom: 18px; }
.kicker::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 1px;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  margin-top: 28px;
}
.section-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 36em;
  margin-top: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-amber { background: var(--q-amber); color: var(--q-on-amber); font-weight: 600; }
.btn-amber:hover { background: #F4B658; box-shadow: 0 8px 28px -10px rgba(240, 169, 59, .7); }

.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover > .arrow { transform: translate(2px, -2px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.actions-center { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 28px; height: 28px; }
.mark-dot { fill: var(--accent); }
.brand-name { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; }
.site-nav ul a {
  position: relative;
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  border-radius: 12px;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle-bars { position: relative; margin: 0 auto; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  /* Without JavaScript the links simply stay visible and wrap. */
  .site-nav { gap: 16px; }
  .site-nav ul { gap: 18px; }
  .site-nav .btn { display: none; }

  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .18);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .js .site-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a {
    display: block; padding: 16px 0; font-family: var(--serif); font-size: 30px; font-weight: 400;
    color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .js .site-nav ul a::after { display: none; }
  .js .site-nav .btn { display: inline-flex; margin-top: 24px; min-height: 52px; font-size: 16px; }
  .js .site-header.menu-open { background: var(--bg); border-bottom-color: var(--line); }
}

@media (max-width: 380px) {
  .site-nav ul { gap: 14px; }
  .site-nav ul a { font-size: 14px; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 8vw, 110px) 0 clamp(72px, 10vw, 140px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-art { justify-self: end; width: 100%; max-width: 480px; }

.orbits { width: 100%; height: auto; overflow: visible; }
.orbits .ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.orbits .ring-faint { stroke: var(--line); stroke-dasharray: 2 6; }
.orbits .node { fill: var(--ink); }
.orbits .node-small { fill: var(--muted); }
.orbits .node-accent { fill: var(--accent); }
.orbits .core { fill: var(--accent); }
.orbits .spin { transform-origin: 240px 240px; transform-box: view-box; animation: spin 80s linear infinite; }
.orbits .spin-b { animation-duration: 120s; animation-direction: reverse; }
.orbits .spin-c { animation-duration: 170s; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); }
}
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 220px; order: -1; margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .actions .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }

/* About */
.about { border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-body > p { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.65; }
.about-body > p + p { margin-top: 20px; }

.facts {
  margin-top: 44px;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-right: 20px; }
.facts dt { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.facts dd { margin-top: 4px; font-weight: 500; overflow-wrap: anywhere; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .2s var(--ease); }
.facts a:hover { border-bottom-color: currentColor; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { padding-right: 0; }
}

/* Products */
.products { padding-top: 0; }

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background: var(--q-bg);
  color: var(--q-ink);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
.product-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 85% 20%, rgba(240, 169, 59, .10), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .product-card { box-shadow: inset 0 0 0 1px rgba(246, 239, 228, .07); }
}

.product-badge {
  display: inline-block;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--q-amber);
  background: rgba(240, 169, 59, .12);
  border: 1px solid rgba(240, 169, 59, .28);
  padding: 7px 14px; border-radius: 999px;
}
.qyniva-wordmark {
  font-family: "Qyniva Wordmark", var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-top: 28px;
}
.product-desc {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--q-muted);
  max-width: 30em;
}
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
.product-url { font-size: 15px; color: var(--q-muted); letter-spacing: 0.01em; }
.product-card :focus-visible { outline-color: var(--q-amber); }

.product-art svg { width: 100%; height: auto; }
.product-art .thread {
  fill: none; stroke: rgba(246, 239, 228, .28); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 700; stroke-dashoffset: 700;
}
.product-card.is-visible .thread { animation: draw 2.4s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.product-art .moment { fill: var(--q-ink); }
.product-art .moment-lit { fill: var(--q-amber); }
.product-art .moment-faint { fill: rgba(246, 239, 228, .35); }

@media (max-width: 860px) {
  .product-card { grid-template-columns: 1fr; }
  .product-art { order: -1; max-width: 360px; margin: -8px 0 4px -6px; }
}

/* Vision */
.vision {
  position: relative;
  background: var(--band);
  color: var(--band-ink);
  padding: clamp(96px, 12vw, 170px) 0;
  overflow: hidden;
  isolation: isolate;
}
.vision-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.vision-lines circle { fill: none; stroke: var(--band-line); stroke-width: 1; }
.kicker-inverse { color: var(--band-muted); }
.kicker-inverse::before { background: #8CCBB6; }
.vision-title {
  color: var(--band-ink);
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  max-width: 15ch;
}
.vision-title em { color: #8CCBB6; }

.principles {
  margin-top: clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.principles li { border-top: 1px solid var(--band-line); padding-top: 24px; }
.principle-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--band-muted); }
.principles h3 { margin-top: 14px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.principles p { margin-top: 10px; color: var(--band-muted); line-height: 1.6; }

@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
}

/* Contact */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .section-lede { margin-left: auto; margin-right: auto; }
.contact-email {
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease), color .3s var(--ease);
  overflow-wrap: anywhere;
}
.contact-email:hover { background-size: 100% 1px; color: var(--accent); }
.contact .actions { margin-top: 36px; }
.contact-note { margin-top: 36px; font-size: 15px; color: var(--muted); }
.contact-note a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.contact-note a:hover { text-decoration-color: currentColor; }
.copy-status { min-height: 1.6em; margin-top: 8px; font-size: 14px; color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 26em; font-size: 15px; }
.footer-col h2 {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.footer-col li + li { margin-top: 8px; }
.footer-col a, .to-top { text-decoration: none; color: var(--ink-2); font-size: 15px; transition: color .2s var(--ease); }
.footer-col a:hover, .to-top:hover { color: var(--accent); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer-base .to-top { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orbits .spin { animation: none; }
  .product-art .thread { stroke-dashoffset: 0; animation: none !important; }
  .btn, .arrow, .site-header, .site-nav, .contact-email { transition: none; }
}

/* ---------- Simple pages (privacy, 404) ---------- */

.page { padding: clamp(48px, 8vw, 110px) 0 clamp(80px, 10vw, 140px); }
.page-inner { max-width: 720px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
.page .updated { margin-top: 16px; color: var(--muted); font-size: 15px; }
.page h2 { margin-top: 48px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.page p, .page li { margin-top: 14px; color: var(--ink-2); }
.page ul { list-style: disc; padding-left: 22px; }
.page li { margin-top: 8px; }
.page a { text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.page a:hover { text-decoration-color: currentColor; color: var(--accent); }
.page .actions a { text-decoration: none; }
.page .actions .btn-primary:hover { color: var(--on-accent); }
