@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650&family=IBM+Plex+Mono:wght@400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --ink: #202c25;
  --muted: #606b63;
  --green: #355c43;
  --line: #dce1d8;
  --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
::selection { background: #d4e3ca; }
.site-shell { max-width: 1264px; padding: 0 64px; margin: auto; }
.site-header { height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 23px; font-weight: 650; letter-spacing: -1.2px; }
.brand-dot { color: #74946a; }
.language-switch { display: flex; align-items: center; gap: 12px; font: 11px var(--mono); letter-spacing: .5px; }
.language-switch a { color: var(--muted); padding: 10px 2px; }
.language-switch a:hover, .language-switch a[aria-current="page"] { color: var(--green); }
.language-switch a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.language-switch > span { color: #a0ada0; }
.mono, .eyebrow { font: 10px var(--mono); letter-spacing: 1.4px; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 24px; min-height: min(660px, calc(100svh - 265px)); padding: 70px 0; }
.eyebrow { margin: 0 0 28px; }
h1 { margin: 0 0 27px; font-size: clamp(40px, 4.45vw, 63px); font-weight: 500; line-height: 1.13; letter-spacing: -2.5px; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
h1 .serif { font-size: 1.12em; }
html[lang="fi"] h1 { font-size: clamp(38px, 4vw, 56px); }
.hero-description { max-width: 370px; font-size: 15px; line-height: 1.85; color: var(--muted); margin: 0; text-wrap: pretty; }
.workflow { margin: 0; min-width: 0; }
.agent-map { position: relative; aspect-ratio: 440 / 380; }
.map-lines { display: block; width: 100%; height: auto; }
.signal-line { animation: signal 12s linear infinite; }
@keyframes signal { to { stroke-dashoffset: -780; } }
.workflow-node { position: absolute; transform: translate(-50%, -24px); display: flex; align-items: center; flex-direction: column; gap: 11px; border: 0; background: transparent; color: var(--muted); padding: 0; cursor: pointer; }
.coordinator { left: 50%; top: 17.1%; }
.researcher { left: 23.86%; top: 67.1%; }
.reviewer { left: 76.14%; top: 67.1%; }
.node-icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--paper); border: 1px solid #91a58c; border-radius: 13px; transition: background .2s, box-shadow .2s; }
.node-icon svg { width: 22px; height: 22px; stroke: var(--green); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.node-label { font: 9px var(--mono); letter-spacing: .3px; background: var(--paper); padding: 2px 5px; }
.workflow-node:hover .node-icon, .workflow-node.selected .node-icon { background: #e5eddf; box-shadow: 0 0 0 5px #91a58c12; }
.workflow-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 15px; min-height: 32px; }
.workflow-caption .mono { font-size: 8px; letter-spacing: 1px; }
.caption-divider { color: #a0ada0; margin: 0 5px; }
.run-button { border: 0; border-bottom: 1px solid #adbba6; background: transparent; color: var(--green); font-size: 11px; padding: 8px 0; min-width: 47px; cursor: pointer; }
.run-button span { margin-left: 9px; }
.run-button:disabled { opacity: .55; cursor: wait; }
.workflow-state { min-height: 26px; font-size: 9px; letter-spacing: .4px; padding: 8px 15px 0; }
.disciplines { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; margin: 0; padding: 31px 0; border-block: 1px solid var(--line); }
.disciplines li { display: flex; align-items: center; gap: 13px; font-size: 13px; color: #56634f; }
.discipline-mark { color: #718968; font-size: 21px; }
footer { display: flex; justify-content: space-between; align-items: center; min-height: 80px; }
footer .mono { font-size: 8px; letter-spacing: .8px; }
.footer-mark { color: #7e9673; font-size: 19px; }
.skip-link { position: fixed; left: 12px; top: -100px; background: var(--ink); color: white; padding: 12px; z-index: 10; opacity: 0; }
.skip-link:focus { top: 12px; opacity: 1; }
.text-link { display: inline-flex; gap: 20px; padding: 12px 0 8px; border-bottom: 1px solid #a5b2a2; font-size: 13px; }
@media (max-width: 1050px) {
  .site-shell { padding: 0 40px; }
  .hero { grid-template-columns: 1.25fr 1fr; gap: 12px; }
  h1 { font-size: 46px; letter-spacing: -1.8px; }
  html[lang="fi"] h1 { font-size: 40px; }
  .disciplines { gap: 15px; }
  .disciplines li { font-size: 11px; gap: 9px; }
}
@media (max-width: 760px) {
  .site-shell { padding: 0 25px; }
  .site-header { height: 84px; }
  .wordmark { font-size: 22px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 48px 0 32px; gap: 28px; }
  h1 { font-size: clamp(38px, 7.6vw, 56px); letter-spacing: -1.8px; margin-bottom: 20px; }
  html[lang="fi"] h1 { font-size: clamp(30px, 7.8vw, 52px); letter-spacing: -1.3px; }
  .eyebrow { font-size: 9px; margin-bottom: 23px; letter-spacing: 1px; }
  .hero-description { font-size: 14px; max-width: 360px; }
  .workflow { width: 100%; max-width: 370px; margin: auto; }
  .node-icon { width: 44px; height: 44px; border-radius: 12px; }
  .workflow-node { transform: translate(-50%, -22px); }
  .node-label { font-size: 8px; }
  .workflow-caption { padding-inline: 6px; }
  .workflow-caption .mono { font-size: 7px; }
  .workflow-state { padding-left: 6px; }
  .disciplines { flex-wrap: wrap; justify-content: flex-start; gap: 16px 24px; padding: 24px 0; }
  .disciplines li { font-size: 11px; }
  .discipline-mark { font-size: 17px; }
  footer { min-height: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-line { animation: none; }
  * { transition: none !important; }
}
