/* The samples hub, in syntheticsciences.ai's language: Concrete Roman at one weight, ink on paper, soft cards without
   rules, and colour carried by the watercolour: the painted word, each field's scene and its painted name.
   Type: the hero word; titles 56 (40 on phones); card titles 36 (30 on phones); lede 17; card text 15.5; buttons
   and bar 15; links 14; small 13.5. Space: 8 · 16 · 24 · 40 · 64 · 96 · 144. No rules or outlined boxes: spacing,
   colour and soft cards separate things. */
@font-face { font-family: "Concrete Roman"; src: url("/fonts/cmunorm.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --face: "Concrete Roman", Georgia, "Times New Roman", serif;
  --fs-title: 56px; --fs-card: 36px; --fs-lede: 17px; --fs-body: 16px; --fs-text: 15.5px; --fs-ui: 15px; --fs-link: 14px; --fs-small: 13.5px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px; --s7: 144px;
  --r: 14px; --rb: 8px;
  --wide: 1120px;   /* the Models page's width, so the shared bar and footer line up on every page */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root, [data-theme="light"] {
  color-scheme: light;
  --paper: #f2efe9; --ink: #161513; --fg: #1e1d1a; --lede: #4c4841; --dim: #46423b; --mute: #6b655b; --faint: #a39d91;
  --tint: rgb(30 29 26 / .045); --tint-2: rgb(30 29 26 / .085); --line: rgb(30 29 26 / .24);
  --card: #fcfbf8; --btn-line: #ffffff;
  --shadow: 0 1px 2px rgb(30 29 26 / .05), 0 14px 36px -18px rgb(30 29 26 / .2);
  --shadow-hi: 0 1px 2px rgb(30 29 26 / .07), 0 22px 48px -18px rgb(30 29 26 / .28);
  --accent: #1a5c60; --select: #1a5c602e; --noise-opacity: .3;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131210; --ink: #f3eee4; --fg: #ece6da; --lede: #c9c2b5; --dim: #c2bbae; --mute: #a39c8f; --faint: #757066;
  --tint: rgb(236 231 221 / .05); --tint-2: rgb(236 231 221 / .1); --line: rgb(236 231 221 / .22);
  --card: #1c1a17; --btn-line: #1c1a17;
  --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 14px 36px -18px rgb(0 0 0 / .7);
  --shadow-hi: 0 1px 2px rgb(0 0 0 / .4), 0 22px 48px -18px rgb(0 0 0 / .8);
  --accent: #6fb8bb; --select: #6fb8bb3a; --noise-opacity: .2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--face); font-size: var(--fs-body); font-weight: 400; line-height: 1.5; font-feature-settings: "liga" 1, "kern" 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: var(--noise-opacity);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25 1.25' numOctaves='3' seed='5570' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='luminanceToAlpha' result='alphaNoise'/%3E%3CfeComponentTransfer in='alphaNoise' result='coloredNoise'%3E%3CfeFuncA type='discrete' tableValues='1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3CfeFlood flood-color='rgba(0,0,0,0.25)' result='colorFlood'/%3E%3CfeComposite operator='in' in='colorFlood' in2='coloredNoise'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
[data-theme="dark"] body::after { filter: invert(1); }
::selection { background: var(--select); }
h1, h2, h3, p, dl, dd { margin: 0; padding: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 16px; z-index: 70; background: var(--ink); color: var(--paper); padding: .4rem .8rem; border-radius: 6px; }

/* bar: the brand and the theme switch, as on the main site */
.bar { position: sticky; top: 0; z-index: 30; background: var(--paper); background: rgb(from var(--paper) r g b / .84); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.bar-in { max-width: calc(var(--wide) + 48px); margin: 0 auto; height: 56px; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; white-space: nowrap; color: var(--ink); }
.brand-mark { width: 16px; height: 16px; background: var(--ink); -webkit-mask: url("/synsci-mark.svg") center / contain no-repeat; mask: url("/synsci-mark.svg") center / contain no-repeat; }
.brand-slash { color: var(--faint); margin: 0 -4px; }
.brand-name { color: var(--mute); }
.brand:hover .brand-name { color: var(--ink); }
.theme { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--mute); transition: background-color .2s, color .2s; }
.theme:hover { background: var(--tint); color: var(--ink); }
.theme-disc { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.3px currentColor; transition: transform .4s var(--ease); }
[data-theme="dark"] .theme-disc { transform: rotate(180deg); }

/* buttons, as on the main site */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--rb); border: 1px solid transparent; font-size: var(--fs-ui); line-height: 1.5; transition: opacity .2s, background-color .2s, border-color .2s; }
.btn[hidden] { display: none; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { opacity: .86; }
.btn-line { background: var(--btn-line); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--mute); }

.page { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 0 24px; }

/* hero: the painted word with what the samples are and the two buttons under it; evaluation and training in a narrow
   column beside it, its last line level with the buttons */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: var(--s4) var(--s5); align-items: end; padding: var(--s6) 0 0; }
.hero-title { font-size: clamp(84px, 13vw, 184px); line-height: .92; letter-spacing: -.035em; margin-left: -.04em; }
.hero-word { display: inline-block; padding: .04em .04em .12em; color: var(--tint-2); background-size: cover; background-position: center; transition: color .8s var(--ease); }
.hero-word.painted { color: transparent; -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 560px; margin-top: var(--s3); font-size: var(--fs-lede); line-height: 1.7; color: var(--fg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.hero-side { display: grid; gap: var(--s2); padding-bottom: 2px; }
.hero-side p { font-size: var(--fs-text); line-height: 1.7; color: var(--lede); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-side { max-width: 620px; } }

/* collections: three cards, each opening on its painted scene */
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s6); }
.coll { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.coll:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.coll-art { position: relative; height: 264px; }
.coll-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s var(--ease); }
.coll-art canvas.shown { opacity: 1; }
.coll-body { display: flex; flex: 1; flex-direction: column; padding: var(--s1) 32px 32px; }
.coll-title { margin-top: var(--s2); font-size: var(--fs-card); line-height: 1.05; color: var(--fg); }
.coll-text { margin-top: var(--s2); font-size: var(--fs-text); line-height: 1.6; color: var(--dim); }
/* each collection's lab and what it offers, in one quiet sentence under its description */
.coll-note { margin-top: var(--s2); font-size: var(--fs-text); line-height: 1.6; color: var(--mute); }
.coll-note a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.coll-note a:hover { text-decoration-color: currentColor; }
.coll-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: auto; padding-top: 32px; }

/* one by one (`data-layout="stack"` on .collections): each collection a wide panel, its scene on alternating sides
   and its name painted in its pigments */
[data-scene="models"] { --p1: #1a5c60; --p2: #6fa3a2; --p3: #2a4a7a; }
[data-scene="molecules"] { --p1: #2f6b55; --p2: #7aa58e; --p3: #1a5c60; }
[data-scene="materials"] { --p1: #b8863a; --p2: #d9b87a; --p3: #a4512d; }
[data-theme="dark"] [data-scene="models"] { --p1: #6fb8bb; --p2: #4f8a8b; --p3: #8aa6d6; }
[data-theme="dark"] [data-scene="molecules"] { --p1: #8cc3a7; --p2: #5e8f78; --p3: #6fb8bb; }
[data-theme="dark"] [data-scene="materials"] { --p1: #d9a85c; --p2: #9c7a45; --p3: #e0916b; }
.collections[data-layout="stack"] { grid-template-columns: 1fr; gap: var(--s4); }
.collections[data-layout="stack"] .coll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 400px; }
.collections[data-layout="stack"] .coll:hover { transform: none; }
.collections[data-layout="stack"] .coll:nth-child(even) .coll-art { order: 2; }
.collections[data-layout="stack"] .coll-art { height: auto; min-height: 400px; }
.collections[data-layout="stack"] .coll-body { justify-content: center; padding: var(--s5) var(--s5) var(--s5) var(--s4); }
.collections[data-layout="stack"] .coll:nth-child(even) .coll-body { padding: var(--s5) var(--s4) var(--s5) var(--s5); }
.collections[data-layout="stack"] .coll-title { align-self: flex-start; padding: 0 .05em .08em 0; font-size: var(--fs-title); line-height: 1.06; color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-image: radial-gradient(55% 110% at 12% 50%, var(--p1) 0 32%, transparent 76%), radial-gradient(50% 110% at 55% 40%, var(--p2) 0 30%, transparent 75%),
    radial-gradient(45% 110% at 95% 60%, var(--p3) 0 30%, transparent 75%), linear-gradient(100deg, var(--p1), var(--p3)); }
.collections[data-layout="stack"] .coll-text { max-width: 420px; font-size: var(--fs-lede); line-height: 1.65; color: var(--lede); }
.collections[data-layout="stack"] .coll-text { margin-top: var(--s3); }
.collections[data-layout="stack"] .coll-note { max-width: 420px; margin-top: var(--s3); }
.collections[data-layout="stack"] .coll-actions { margin-top: var(--s4); padding-top: 0; }

/* the access dialog: one soft card over a dimmed hub, washed at the top in the chosen collection's pigments (or the
   hub's), with its title painted like the panels' names. Fields and choices are soft fills, never outlined. */
.ask { --p1: #1a5c60; --p2: #b8863a; --p3: #2a4a7a; width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0;
  border-radius: var(--r); background: var(--card); color: var(--ink); box-shadow: var(--shadow-hi); overflow: hidden auto; overscroll-behavior: contain; }
[data-theme="dark"] .ask { --p1: #6fb8bb; --p2: #d9a85c; --p3: #8aa6d6; }
.ask[data-scene="models"] { --p1: #1a5c60; --p2: #6fa3a2; --p3: #2a4a7a; }
.ask[data-scene="molecules"] { --p1: #2f6b55; --p2: #7aa58e; --p3: #1a5c60; }
.ask[data-scene="materials"] { --p1: #b8863a; --p2: #d9b87a; --p3: #a4512d; }
[data-theme="dark"] .ask[data-scene="models"] { --p1: #6fb8bb; --p2: #4f8a8b; --p3: #8aa6d6; }
[data-theme="dark"] .ask[data-scene="molecules"] { --p1: #8cc3a7; --p2: #5e8f78; --p3: #6fb8bb; }
[data-theme="dark"] .ask[data-scene="materials"] { --p1: #d9a85c; --p2: #9c7a45; --p3: #e0916b; }
.ask::backdrop { background: rgb(22 21 19 / .3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
[data-theme="dark"] .ask::backdrop { background: rgb(0 0 0 / .5); }
.ask[open] { animation: ask-in .32s var(--ease); }
.ask[open]::backdrop { animation: ask-fade .32s var(--ease); }
@keyframes ask-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes ask-fade { from { opacity: 0; } }
html:has(.ask[open]) { overflow: hidden; }
.ask-wash { position: absolute; inset: 0 0 auto; height: 190px; pointer-events: none; opacity: .2; filter: blur(34px);
  background: radial-gradient(38% 60% at 16% 30%, var(--p1), transparent 70%), radial-gradient(34% 55% at 52% 18%, var(--p2), transparent 70%),
    radial-gradient(38% 60% at 88% 34%, var(--p3), transparent 70%); }
[data-theme="dark"] .ask-wash { opacity: .15; }
.ask-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; color: var(--mute); transition: background-color .2s, color .2s; }
.ask-close::before, .ask-close::after { content: ""; position: absolute; left: 11px; top: 17.25px; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.ask-close::after { transform: rotate(-45deg); }
.ask-close:hover { background: var(--tint); color: var(--ink); }
.ask-pane { position: relative; z-index: 1; display: flex; flex-direction: column; padding: var(--s4) var(--s4) 36px; }
.ask-pane[hidden] { display: none; }
.ask-title { align-self: flex-start; padding: 0 .05em .1em 0; margin-right: 40px; font-size: var(--fs-card); line-height: 1.1; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: radial-gradient(55% 110% at 12% 50%, var(--p1) 0 32%, transparent 76%), radial-gradient(50% 110% at 55% 40%, var(--p2) 0 30%, transparent 75%),
    radial-gradient(45% 110% at 95% 60%, var(--p3) 0 30%, transparent 75%), linear-gradient(100deg, var(--p1), var(--p3)); }
.ask-title:focus { outline: none; }
.ask-lede { margin-top: var(--s1); font-size: var(--fs-text); line-height: 1.6; color: var(--dim); }
.ask-err { margin-top: var(--s2); padding: 10px 14px; border-radius: var(--rb); background: rgb(163 59 44 / .08); color: #a33b2c; font-size: var(--fs-link); line-height: 1.5; }
[data-theme="dark"] .ask-err { background: rgb(229 138 121 / .1); color: #e58a79; }
.ask-err[hidden] { display: none; }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ask-field, .ask-set { display: block; min-width: 0; margin: var(--s2) 0 0; padding: 0; border: 0; }
.ask-row .ask-field { margin-top: var(--s2); }
.ask-field > span, .ask-set > legend { display: block; margin: 0 0 6px; padding: 0; font-size: var(--fs-small); color: var(--mute); }
.ask .opt { color: var(--faint); }
.ask input[type=text], .ask input[type=email], .ask input[type=password], .ask textarea { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--rb);
  background: var(--tint); color: var(--ink); font: inherit; font-size: var(--fs-body); line-height: 1.4; transition: background-color .2s, box-shadow .2s; }
.ask input::placeholder { color: var(--faint); letter-spacing: .02em; }
.ask input:hover, .ask textarea:hover { background: var(--tint-2); }
.ask input:focus, .ask textarea:focus { outline: none; background: var(--tint-2); box-shadow: 0 0 0 2px var(--accent); }
.ask [aria-invalid="true"] { background: rgb(163 59 44 / .08); }
.ask textarea { min-height: 80px; resize: vertical; }
.ask-chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip { position: relative; display: inline-flex; padding: 7px 14px; border-radius: var(--rb); background: var(--tint); color: var(--dim); font-size: var(--fs-link); line-height: 1.4; cursor: pointer; user-select: none; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--tint-2); color: var(--ink); }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--ink); color: var(--paper); }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.ask-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.ask-foot .btn { justify-content: center; min-width: 148px; }
.ask-foot .btn:disabled { opacity: .6; cursor: progress; }
.ask-alt { font-size: var(--fs-link); color: var(--mute); }
.ask-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.ask-alt a:hover { text-decoration-color: currentColor; }
.ask-note { margin-top: var(--s2); font-size: var(--fs-link); color: var(--mute); }
.ask-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.ask-ref { display: grid; gap: 4px; margin-top: var(--s3); }
.ask-ref span:first-child { font-size: var(--fs-small); color: var(--mute); }
.ask-ref [data-ref] { font-size: 28px; line-height: 1.2; letter-spacing: .02em; color: var(--ink); }

/* footer: the name is painted like the hero */
.foot { margin-top: var(--s7); }
.foot-in { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 0 24px; }
.foot-name-wrap { container-type: inline-size; }
.foot-name { white-space: nowrap; font-size: calc(100cqw / 7.75); line-height: 1.02; letter-spacing: -.02em; color: var(--tint-2); user-select: none; transition: color .7s; background-size: cover; }
.foot-name.painted { color: transparent; -webkit-background-clip: text; background-clip: text; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); margin-top: var(--s2); padding: 20px 0 var(--s4); font-size: var(--fs-small); color: var(--mute); }
.foot-legal a:hover { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }

@media (max-width: 1000px) {
  .collections { grid-template-columns: 1fr 1fr; }
  .coll:last-child { grid-column: 1 / -1; }
  .collections[data-layout="stack"] .coll { grid-template-columns: 1fr; min-height: 0; }
  .collections[data-layout="stack"] .coll:nth-child(even) .coll-art { order: 0; }
  .collections[data-layout="stack"] .coll-art { min-height: 280px; }
  .collections[data-layout="stack"] .coll-body, .collections[data-layout="stack"] .coll:nth-child(even) .coll-body { padding: var(--s4); }
}
@media (max-width: 700px) {
  :root { --fs-title: 40px; --fs-card: 30px; }
  .bar-in { gap: 16px; padding: 0 16px; }
  .brand-slash, .brand-name { display: none; }
  .page, .foot-in { padding: 0 16px; }
  .hero { padding-top: var(--s4); }
  .collections { grid-template-columns: 1fr; gap: var(--s2); margin-top: var(--s5); }
  .coll-art { height: 220px; }
  .coll-body { padding: var(--s1) var(--s3) var(--s3); }
  .collections[data-layout="stack"] .coll-art { min-height: 220px; }
  .collections[data-layout="stack"] .coll-body, .collections[data-layout="stack"] .coll:nth-child(even) .coll-body { padding: var(--s3) var(--s3) var(--s4); }
  .coll:hover { transform: none; }
  .foot { margin-top: var(--s6); }
  .ask { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .ask-pane { padding: var(--s3) var(--s3) 28px; }
  .ask-row { grid-template-columns: 1fr; }
  .ask-foot .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coll, .coll-art canvas, .hero-word { transition: none; }
  .ask[open], .ask[open]::backdrop { animation: none; }
}
