/* Noesis Works site styles v2.1.0 (2026-10-09; 2.1.0: the C2.5 open-ring mark (.brand-mark, .hero-mark SVG). 2.0.0: the serious-company layout: facts strip, product cards with real
   screens, the Company section, contact cards, a columned legal footer). v1.0.0 (2026-10-08). The studio house style (Docsnug v2.0.1 → Voice Tide → Oncesnap:
   aurora, glass surfaces, a system sans with an EB Garamond italic accent, pill buttons), in the company's two colours:
   insight violet (#8C7CFF) and spark gold (#F5C451). Scroll-driven motion (the scroll-world idea, without video):
   a reading bar, a sentence that comes into focus word by word, the name that assembles as it enters.
   All of it is CSS scroll timelines; site.js only adds an IntersectionObserver fallback. Reduced motion turns it off.
   Dark first; light follows prefers-color-scheme. No external requests, no inline styles (CSP style-src 'self'). */

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/EBGaramond-Italic-500-latin.woff") format("woff");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08080D;
  --bg-top: #15112B;
  --surface: #12121A;
  --glass: rgba(20, 19, 30, 0.58);
  --glass-hi: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: rgba(255, 255, 255, 0.94);
  --text-dim: rgba(255, 255, 255, 0.68);
  --text-faint: rgba(255, 255, 255, 0.46);
  --violet: #8C7CFF;
  --violet-soft: #B3A8FF;
  --violet-hi: #DCD6FF;
  --violet-bg: rgba(140, 124, 255, 0.12);
  --violet-line: rgba(140, 124, 255, 0.36);
  --gold: #F5C451;
  --mark-gold: #F2BE4A;
  --gold-soft: #FFD77E;
  --gold-hi: #FFEDBF;
  --on-gold: #1A1300;
  --gold-fill: linear-gradient(180deg, #FFDC85 0%, #F5C451 55%, #E0A92C 100%);
  --bloom-1: rgba(111, 92, 255, 0.34);
  --bloom-2: rgba(28, 46, 110, 0.55);
  --bloom-3: rgba(245, 196, 81, 0.13);
  --shadow: 0 30px 80px -26px rgba(0, 0, 0, 0.8);
  --radius: 22px;
  --radius-sm: 16px;
  --wrap: 1140px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F6F5F1;
    --bg-top: #FFFFFF;
    --surface: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-hi: rgba(255, 255, 255, 0.85);
    --line: rgba(20, 16, 50, 0.1);
    --line-strong: rgba(20, 16, 50, 0.18);
    --text: #14121F;
    --text-dim: #45425A;
    --text-faint: #6A677C;
    --violet: #5A48D8;
    --violet-soft: #4B3AC4;
    --violet-hi: #3A2BA3;
    --violet-bg: rgba(90, 72, 216, 0.08);
    --violet-line: rgba(90, 72, 216, 0.3);
    --gold: #9A6A00;
    --mark-gold: #D9A12A;
    --gold-soft: #865C00;
    --gold-hi: #6E4B00;
    --bloom-1: rgba(111, 92, 255, 0.18);
    --bloom-2: rgba(245, 196, 81, 0.16);
    --bloom-3: rgba(140, 124, 255, 0.12);
    --shadow: 0 26px 60px -30px rgba(30, 20, 80, 0.3);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- the aurora ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 70% at 50% -10%, var(--bg-top) 0%, var(--bg) 60%); }
.aurora i { position: absolute; border-radius: 50%; }
.aurora .b1 { width: 72vmax; height: 72vmax; left: -26vmax; top: -34vmax; background: radial-gradient(closest-side, var(--bloom-1), transparent); }
.aurora .b2 { width: 62vmax; height: 62vmax; right: -30vmax; top: 6vh; background: radial-gradient(closest-side, var(--bloom-2), transparent); }
.aurora .b3 { width: 64vmax; height: 40vmax; left: 12vw; top: 55vh; background: radial-gradient(closest-side, var(--bloom-3), transparent); }

/* ---------- the reading bar (scroll timeline of the page) ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--violet), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-soft); text-wrap: balance; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.display { font-size: clamp(42px, 7vw, 88px); font-weight: 800; line-height: 1.0; letter-spacing: -0.04em; }
.title { font-size: clamp(32px, 4.5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.032em; }
.accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.012em;
  font-size: 1.08em; line-height: 0.95; padding-inline-end: 0.06em;
  background: linear-gradient(100deg, var(--violet-hi) 0%, var(--violet-soft) 40%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.6; color: var(--text-dim); max-width: 38em; }
.center .lede { margin-inline: auto; }
.small { font-size: 14px; line-height: 1.6; color: var(--text-faint); }
.eyebrow + .title, .eyebrow + .display { margin-top: 16px; }
.title + .lede, .display + .lede { margin-top: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 650 15.5px/1 var(--font-sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: var(--on-gold); background: var(--gold-fill);
  box-shadow: 0 12px 32px -12px rgba(245, 196, 81, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 38px -12px rgba(245, 196, 81, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { color: var(--text); background: var(--glass); border-color: var(--line-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--violet-line); transform: translateY(-1px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.center .actions { justify-content: center; }

/* ---------- surfaces ---------- */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 64%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark .arc { stroke: var(--violet); }
.brand-mark .dot { fill: var(--mark-gold); }
.brand-name { font-weight: 750; font-size: 17px; letter-spacing: -0.015em; }
.brand-name em { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.1em; color: var(--violet-soft); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--text-dim); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
@media (max-width: 720px) { .nav .nav-link:not(.keep) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { position: relative; }
.hero-mark { position: absolute; z-index: -1; right: max(-120px, -8vw); top: -40px; width: clamp(280px, 42vw, 560px); aspect-ratio: 1;
  pointer-events: none; opacity: 0.9; }
.hero-mark .arc { filter: drop-shadow(0 0 1.4px rgba(140, 124, 255, 0.55)); }
.hero-mark .s0 { stop-color: var(--violet); }
.hero-mark .s1 { stop-color: var(--violet-hi); }
.hero-mark .dot { fill: var(--mark-gold); filter: drop-shadow(0 0 1.6px var(--mark-gold)); transform-box: fill-box; transform-origin: center;
  animation: pulse 4.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.85; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }
.hero { overflow-x: clip; }
@media (max-width: 720px) {
  .hero-mark { width: 230px; right: -70px; top: -64px; opacity: 0.5; }
}
.hero-copy { max-width: 700px; position: relative; }
.hero .display { max-width: 12em; }
.hero-note-unused { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; color: var(--text-faint); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--violet-soft); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(64px, 8.5vw, 112px) 0; }
.section-head { margin-bottom: clamp(32px, 4.4vw, 52px); }

/* the sentence that comes into focus */
.focus { padding: clamp(80px, 12vw, 160px) 0; }
.focus-text { font-size: clamp(28px, 4vw, 50px); font-weight: 750; line-height: 1.18; letter-spacing: -0.028em; max-width: 20em; }
.focus-text .w { display: inline; }
.focus-text .accent { font-weight: 500; }

/* principles */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { padding: 28px 26px 30px; }
.card .num { font-family: var(--font-serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--gold); }
.card h3 { margin-top: 18px; font-size: 20px; font-weight: 750; letter-spacing: -0.015em; }
.card p { margin-top: 10px; color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }

/* the name */
.name { text-align: center; padding: clamp(90px, 13vw, 170px) 0; }
.greek { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(76px, 15vw, 190px); line-height: 1;
  letter-spacing: 0.02em; display: inline-flex; }
.greek span { display: inline-block;
  background: linear-gradient(180deg, var(--violet-hi) 0%, var(--violet-soft) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-inline: 0.02em; }
.pron { margin-top: 18px; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.name .lede { margin-top: 28px; }
.name .lede + .lede { margin-top: 14px; }

/* plain pages */
.page { padding: clamp(56px, 8vw, 96px) 0; }
.page h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.page h2 { margin-top: 40px; font-size: 21px; font-weight: 750; letter-spacing: -0.015em; }
.page p, .page li { color: var(--text-dim); }
.page p { margin-top: 14px; }
.page ul { margin: 14px 0 0; padding-left: 1.2em; }
.page li + li { margin-top: 8px; }
.page a { color: var(--violet-soft); }

/* facts strip under the hero */
.facts-strip { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 46px 0 0; padding-top: 26px; border-top: 1px solid var(--line); max-width: 760px; }
.facts-strip dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.facts-strip dd { margin: 4px 0 0; font-size: 15.5px; font-weight: 600; color: var(--text); }

/* products: uniform cards, the real screen on top */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }
.product { overflow: hidden; display: flex; flex-direction: column; }
.product .shot { display: block; padding: 22px 22px 0; background: linear-gradient(180deg, var(--violet-bg), transparent); border-bottom: 1px solid var(--line); }
.product .shot img { width: 100%; height: auto; border-radius: 10px 10px 0 0; box-shadow: 0 -1px 0 var(--line-strong), 0 20px 50px -20px rgba(0, 0, 0, 0.6); }
.product-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.product-head { display: flex; align-items: center; gap: 14px; }
.product-head img { width: 48px; height: 48px; border-radius: 12px; }
.product h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.018em; }
.product .cat { font-size: 14px; color: var(--text-faint); margin-top: 2px; }
.product-body > p { margin-top: 16px; color: var(--text-dim); font-size: 15.5px; }
.product .platforms { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-faint); flex: 1; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }
.links a { font-weight: 650; font-size: 15px; color: var(--violet-soft); text-decoration: none; }
.links a:first-child::after { content: " →"; }
.links a:hover { color: var(--text); }

/* company */
.company .name { padding: 0 0 clamp(36px, 5vw, 64px); }
.company-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .company-grid { grid-template-columns: 1fr; } }
.company-grid .lede { margin-top: 18px; }
.company-grid .title + .lede { margin-top: 22px; }
.facts { margin: 0; padding: 8px 26px; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; color: var(--text); }
.facts a { color: var(--violet-soft); text-decoration: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h3 { margin-top: 0; }
.contact-grid .mail { display: inline-block; margin-top: 18px; font-weight: 650; color: var(--violet-soft); text-decoration: none; }
.contact-grid .mail:hover { color: var(--text); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; color: var(--text-faint); font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { margin-top: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.site-footer a { text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* ---------- motion: scroll timelines, with a JS fallback (.io) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes sharpen { from { opacity: 0.12; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
@keyframes gather { from { opacity: 0; transform: translateY(0.35em) rotate(-6deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes grow { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    .focus-text .w { animation: sharpen linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
    .greek span { animation: gather linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .greek span:nth-child(2) { animation-range: entry 16% cover 44%; }
    .greek span:nth-child(3) { animation-range: entry 22% cover 48%; }
    .greek span:nth-child(4) { animation-range: entry 28% cover 52%; }
    .greek span:nth-child(5) { animation-range: entry 34% cover 56%; }
    .greek span:nth-child(6) { animation-range: entry 40% cover 60%; }
  }
  /* fallback when scroll timelines are missing: site.js adds .io to <html> and .in to each element as it enters */
  .io .reveal, .io .focus-text .w, .io .greek span { opacity: 0; transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.9s ease; }
  .io .reveal { transform: translateY(28px); }
  .io .focus-text .w { filter: blur(6px); }
  .io .greek span { transform: translateY(0.35em); filter: blur(8px); }
  .io .in, .io .in .w, .io .in span { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark .dot { animation: none; }
  .progress { display: none; }
}
