/* ORVANE shared styles: tokens, type, header, buttons, forms, pipeline, footer. */
:root {
  --bg: #f6f7f5;
  --white: #ffffff;
  --mist: #eceeeb;
  --mist-2: #dfe2df;
  --line: rgba(12, 15, 20, .12);
  --line-2: rgba(12, 15, 20, .22);
  --ink: #0c0f14;
  --ink-2: #474e57;
  --grey: #6b727b;
  --acc: #2b36ff;
  --acc-2: #1d25c4;
  --acc-soft: #e6e8ff;
  --night: #0a0d12;
  --ok: #0c7a4b;
  --r: 14px;
  --gut: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --io: cubic-bezier(.7, 0, .2, 1);
  --disp: 'Funnel Display', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.55; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: #aab0ff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--gut); }
.num { font-variant-numeric: tabular-nums; }

/* type */
.d { font-family: var(--disp); font-weight: 600; line-height: .92; letter-spacing: -.045em; margin: 0; }
.d em { font-style: normal; color: var(--acc); }
.on-dark .d em { color: #9aa1ff; }
.d-xxl { font-size: clamp(54px, 9.4vw, 168px); }
.d-xl { font-size: clamp(46px, 7vw, 124px); }
.d-l { font-size: clamp(38px, 5vw, 88px); }
.d-m { font-size: clamp(28px, 3vw, 50px); letter-spacing: -.035em; line-height: 1; }
.d-s { font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.025em; line-height: 1.08; }
.k { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-transform: lowercase; margin: 0 0 22px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.k::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--acc); flex: none; }
.on-dark .k { color: #c9cdd4; }
.on-dark .k::before { background: #9aa1ff; }
.lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; max-width: 36em; margin: 0; color: var(--ink-2); }
.on-dark .lede { color: #d4d8de; }
.mono { font-family: var(--mono); }

/* buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 0; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.btn::after { content: ''; width: 18px; height: 10px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .35s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn.no-arrow::after { display: none; }
.btn-acc { --bg: var(--acc); --fg: #fff; }
.btn-acc:hover { --bg: var(--acc-2); }
.btn:not(.btn-acc):not(.btn-white):not(.btn-line):hover { --bg: #252a33; }
.btn-white { --bg: #fff; --fg: var(--ink); }
.btn-white:hover { --bg: var(--acc-soft); }
.btn-line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn-line { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.on-dark .btn-line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--acc); }

/* media */
.media { position: relative; overflow: hidden; background: var(--mist); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 10px; bottom: 8px; margin: 0; font-family: var(--mono); font-size: 10.5px; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); pointer-events: none; z-index: 2; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; height: 76px; padding: 0 var(--gut); color: #fff; transition: background-color .35s, color .35s, box-shadow .35s, transform .45s var(--ease); }
.top.solid { background: rgba(246, 247, 245, .92); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top.hide { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--disp); font-weight: 700; font-size: 22px; letter-spacing: .12em; margin-right: auto; }
.logo svg { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; position: relative; padding: 6px 0; }
.top nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top nav a:not(.btn):hover::after, .top nav a[aria-current]::after { transform: scaleX(1); }
.top .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; padding: 90px var(--gut) 40px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-100%); visibility: hidden; transition: transform .55s var(--io), visibility 0s .55s; }
.drawer.open { transform: none; visibility: visible; transition: transform .55s var(--io); }
.drawer a { font-family: var(--disp); font-size: 40px; font-weight: 600; letter-spacing: -.04em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.drawer .x { position: absolute; top: 18px; right: var(--gut); }
@media (max-width: 1080px) {
  .top nav a:not(.btn) { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) { .top nav .btn-acc { display: none; } .top { height: 64px; } }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--white); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.field [aria-invalid="true"] { border-color: #c2261c; }
.err { color: #b3221a; font-size: 13px; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--acc); flex: none; }

/* chips + pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-family: var(--mono); font-size: 12px; white-space: nowrap; background: var(--mist); color: var(--ink); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.s0, .pill.s1 { background: #eef0f2; color: #3f4650; }
.pill.s2 { background: #fff1d6; color: #7a4b00; }
.pill.s3 { background: var(--acc-soft); color: var(--acc-2); }
.pill.s4, .pill.s5 { background: #dcf3e7; color: #0b6640; }

/* pipeline table (home + pipeline page) */
.pl-tools { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px 32px; align-items: end; margin: 0 0 26px; }
.pl-tools .grp > p { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; color: var(--grey); }
.pl-count { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin: 0; white-space: nowrap; }
.pl { width: 100%; border-collapse: collapse; }
.pl th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--grey); padding: 0 14px 12px 0; border-bottom: 1.5px solid var(--ink); text-transform: lowercase; }
.pl td { padding: 20px 14px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pl tbody tr { transition: background-color .2s; }
.pl tbody tr:hover { background: var(--white); }
.pl .code { font-family: var(--mono); font-size: 15px; font-weight: 500; white-space: nowrap; }
.pl .code a { text-decoration: none; }
.pl .code a::after { content: ' →'; color: var(--acc); opacity: 0; transition: opacity .2s; }
.pl tr:hover .code a::after, .pl .code a:focus-visible::after { opacity: 1; }
.pl .mol b { display: block; font-weight: 600; font-size: 16px; }
.pl .mol span { font-size: 13.5px; color: var(--grey); }
.pl .ph-th { width: 32%; }
.bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.bar i { height: 8px; border-radius: 2px; background: var(--mist-2); }
.bar i.on { background: var(--acc); }
.bar-l { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--grey); }
.pl-empty { padding: 40px 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .pl-tools { grid-template-columns: 1fr; }
  .pl thead { display: none; }
  .pl, .pl tbody, .pl tr, .pl td { display: block; width: 100%; }
  .pl tr { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
  .pl td { border: 0; padding: 0; }
  .pl td.ph, .pl td.mol, .pl td.meta { grid-column: 1 / -1; }
  .pl td.st { justify-self: end; }
}

/* reveal */
.rv-wait { opacity: 0; transform: translateY(26px); }
.rv-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); }

/* footer */
.ft { background: var(--night); color: #e7e9ec; padding: clamp(64px, 8vw, 120px) 0 0; overflow: hidden; }
.ft-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: #9ba1aa; margin: 0 0 18px; text-transform: lowercase; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft a { text-decoration: none; color: #e7e9ec; }
.ft a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ft-claim { font-family: var(--disp); font-size: clamp(28px, 2.8vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 26px; max-width: 12em; color: #fff; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding: 28px 0; font-size: 13.5px; color: #aeb4bc; }
.ft-legal nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft-legal a { color: #cfd3d8; }
.ft-note { margin: 0; max-width: 64em; }
.ft-note a { text-decoration: underline; text-underline-offset: 3px; }
.ft details { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; }
.ft summary { cursor: pointer; font-family: var(--mono); font-size: 13px; color: #cfd3d8; }
.ft .credits { list-style: none; padding: 0; margin: 18px 0 0; columns: 3 260px; gap: 30px; font-size: 13px; color: #aeb4bc; }
.ft .credits li { break-inside: avoid; margin: 0 0 6px; }
.ft-big { font-family: var(--disp); font-weight: 700; letter-spacing: -.05em; line-height: .78; margin: 0; padding-top: 30px; color: #fff; white-space: nowrap; font-size: 22vw; text-align: center; transform: translateY(8%); }
.ft-big span { color: #9aa1ff; }
@media (max-width: 900px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-top > div:first-child { grid-column: 1 / -1; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; visibility: hidden; transform: translate(-50%, calc(100% + 40px)); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 10px; font-size: 14.5px; z-index: 70; transition: transform .45s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
