/* Noetyra — editorial ivory & ink, violet accent */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); }

:root {
  --bg: #f6f3ec;
  --bg-2: #efeae0;
  --surface: #fbf9f4;
  --ink: #15141a;
  --text: #2a2830;
  --muted: #6c6875;
  --faint: #a29eab;
  --line: #ddd7ca;
  --line-strong: #c9c1b0;
  --accent: #5a49e8;
  --accent-ink: #3b2fb3;
  --accent-soft: #e9e5ff;
  --glow: rgba(90, 73, 232, .16);
  --ok: #1f7a52;
  --warn: #93600a;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", sans-serif;
  --max: 1180px;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d12;
    --bg-2: #141319;
    --surface: #17161d;
    --ink: #f3f0e8;
    --text: #d9d5cc;
    --muted: #9a96a3;
    --faint: #66626f;
    --line: #2a2831;
    --line-strong: #3a3743;
    --accent: #a196ff;
    --accent-ink: #c4bdff;
    --accent-soft: #1f1b3d;
    --glow: rgba(161, 150, 255, .14);
    --ok: #6fd6a3;
    --warn: #f0c46a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: .035; } }

::selection { background: var(--accent); color: #fff; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
em { font-style: italic; }
.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
header.site.scrolled { border-bottom-color: var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--serif); font-size: 27px; letter-spacing: -.01em; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
nav.main { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
nav.main a { color: var(--muted); transition: color .2s; }
nav.main a:hover { color: var(--ink); text-decoration: none; }
nav.main a.cta { white-space: nowrap; color: var(--ink); border: 1px solid var(--line-strong); padding: 7px 16px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
nav.main a.cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 550; font-size: 15px; letter-spacing: -.005em; color: var(--ink);
  border: 1px solid var(--line-strong); background: transparent;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, color .25s, border-color .25s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn .arrow { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: -72px; padding-top: 72px; }
.hero::after {
  content: ""; position: absolute; width: 820px; height: 820px; right: -260px; top: -260px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 104px; padding-bottom: 112px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(52px, 8.2vw, 112px); line-height: .95; letter-spacing: -.025em;
  margin: 26px 0 30px;
}
.hero h1 em { color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 1.7vw, 19.5px); color: var(--muted); max-width: 52ch; margin: 0 0 40px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.orbit { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: end; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.orbit .ring.dash { stroke-dasharray: 2 6; }
.orbit .link { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 7; animation: flow 9s linear infinite; opacity: .7; }
.orbit .node { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.orbit .node.accent { fill: var(--accent); stroke: var(--accent); }
.orbit .label { font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
.orbit .core { font-family: var(--serif); font-size: 44px; fill: var(--ink); }
.orbit .spin { transform-origin: 230px 230px; animation: spin 80s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -110; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee of principles ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip .item { padding: 30px 28px 30px 0; display: flex; gap: 16px; align-items: baseline; }
.strip .item + .item { padding-left: 28px; border-left: 1px solid var(--line); }
.strip .num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent); }
.strip .item p { margin: 0; color: var(--text); font-size: 15px; }
.strip .item strong { display: block; color: var(--ink); font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }

/* ---------- Sections ---------- */
section { padding: 128px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 64px; align-items: start; }
.section-head .idx { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 18px; display: flex; gap: 12px; }
.section-head .idx span { color: var(--accent); }
.section-head h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 20px; }
.section-head h2 em { color: var(--accent); }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; font-size: 17px; }

/* ---------- Products ---------- */
.products { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.product { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); position: relative; }
.product::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.product:hover::before { width: 100%; }
.product .meta { display: flex; flex-direction: column; gap: 14px; }
.product .no { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--faint); line-height: 1; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chip.warn::before { background: var(--warn); }
.product h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(30px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -.015em; margin: 0 0 14px; }
.product .desc p { margin: 0 0 22px; color: var(--muted); font-size: 16.5px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 550; font-size: 14.5px; }
.links a { color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.links a::after { content: "↗"; color: var(--accent); transition: transform .2s; }
.links a[href^="#"]::after { content: "→"; }
.links a:hover { text-decoration: none; color: var(--accent-ink); }
.links a:hover::after { transform: translate(2px, -2px); }
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1.5px; border-radius: 1px; background: var(--accent); }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.tier:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 48px -28px rgba(20, 16, 40, .25); }
.tier.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tier.featured h3, .tier.featured .price { color: var(--bg); }
.tier.featured p, .tier.featured ul.ticks li { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.tier.featured .links a { color: var(--bg); }
.tier .kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tier.featured .kicker { color: var(--accent-soft); }
@media (prefers-color-scheme: dark) { .tier.featured .kicker { color: var(--accent); } }
.tier h3 { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.tier .price { font-family: var(--serif); font-size: 58px; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.tier p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tier .links { margin-top: auto; padding-top: 10px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: start; }
.about .quote { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; color: var(--ink); letter-spacing: -.01em; margin: 0 0 32px; }
.about .quote em { color: var(--accent); }
.about p { color: var(--muted); font-size: 16.5px; margin: 0 0 16px; max-width: 58ch; }
dl.ledger { margin: 0; border-top: 1px solid var(--line-strong); }
dl.ledger div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
dl.ledger dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
dl.ledger dd { margin: 0; color: var(--ink); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact .big { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 116px); line-height: .98; letter-spacing: -.025em; color: var(--ink); margin: 0 0 40px; }
.contact .big em { color: var(--accent); }
.contact .mail { display: inline-flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px); color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; transition: color .2s, border-color .2s; }
.contact .mail:hover { text-decoration: none; color: var(--accent-ink); border-color: var(--accent); }
.contact .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact .row h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact .row p { margin: 0; color: var(--ink); font-size: 15.5px; }

/* ---------- Legal pages ---------- */
.legal { padding-top: 96px; padding-bottom: 120px; max-width: 740px; }
.legal h1 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.02em; margin: 0 0 14px; }
.legal .updated { color: var(--muted); margin: 0 0 48px; font-size: 14px; letter-spacing: .02em; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 28px; letter-spacing: -.01em; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--text); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--accent); }
.legal .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 72px 0 40px; color: var(--muted); font-size: 14px; overflow: hidden; }
footer.site .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
footer.site .tag { font-family: var(--serif); font-size: 24px; color: var(--ink); max-width: 22ch; line-height: 1.25; margin: 0; }
footer.site nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); text-decoration: none; }
footer.site .word { font-family: var(--serif); font-size: clamp(88px, 21vw, 300px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); margin: 0 0 64px -6px; user-select: none; white-space: nowrap; }
footer.site .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orbit .link, .orbit .spin { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 80px; }
  .orbit { justify-self: start; max-width: 340px; }
  .section-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 44px; }
  .section-head .idx { padding-top: 0; }
  .product { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .product .meta { flex-direction: row; align-items: center; gap: 16px; }
  .tiers { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact .row { grid-template-columns: 1fr; gap: 24px; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .item { padding: 22px 0; }
  .strip .item + .item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  section { padding: 88px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  header.site .wrap { height: 64px; }
  .hero { margin-top: -64px; padding-top: 64px; }
  nav.main { gap: 16px; font-size: 14px; }
  nav.main a.cta { padding: 7px 14px; }
  nav.main .hide-sm { display: none; }
  .brand { font-size: 24px; }
  section { padding: 72px 0; }
  .tier { padding: 30px 24px; }
  dl.ledger div { grid-template-columns: 1fr; gap: 4px; }
  footer.site nav { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}
