/* DeepProMach — shared styles. Colours taken from the logo. */
:root {
  --yellow: #E8B92A;
  --yellow-dark: #C99A12;
  --grey: #707070;
  --ink: #1F2124;
  --ink-2: #2B2E33;
  --paper: #FAFAF7;
  --line: #E4E2DC;
  --muted: #5C6066;
  --ok: #2E9E5B;
  --warn: #E0A100;
  --bad: #D2443A;
  --radius: 10px;
  --max: 1120px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: .2px; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: 2px; font-size: .95rem; color: var(--yellow-dark); font-weight: 600; margin-bottom: .6em; display: block; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 680px; }
.hl { color: var(--yellow); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .brand img { height: 34px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav a:hover, .nav a.active { color: var(--yellow-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .98rem; font-family: var(--body); transition: .15s; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(232,185,42,.12); }
.nav .btn { padding: 8px 16px; }

/* Hero */
.hero { padding: 80px 0 70px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-card { background: var(--ink); color: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.hero-card .row { display: flex; justify-content: space-between; font-size: .85rem; color: #AEB2B8; margin-bottom: 10px; }
.hero-card .big { font-family: var(--head); font-size: 2.6rem; color: var(--yellow); line-height: 1; }
.hero-card canvas { width: 100%; height: 140px; display: block; margin: 12px 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .5px; }
.pill.ok { background: rgba(46,158,91,.18); color: #59d18a; }
.pill.warn { background: rgba(224,161,0,.18); color: #ffc93d; }
.pill.bad { background: rgba(210,68,58,.2); color: #ff7b71; }
.pill.off { background: rgba(255,255,255,.1); color: #aaa; }

/* Sections */
section { padding: 80px 0; }
.dark { background: var(--ink); color: #EDEDEA; }
.dark .lead { color: #AEB2B8; }
.alt { background: #F1EFE8; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.dark .card { background: var(--ink-2); border-color: #3A3E44; }
.card .num { font-family: var(--head); font-size: 2.4rem; color: var(--yellow); line-height: 1; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon-box { width: 46px; height: 46px; border-radius: 10px; background: rgba(232,185,42,.16); display: grid; place-items: center; margin-bottom: 14px; }
.icon-box svg { width: 24px; height: 24px; stroke: var(--yellow-dark); fill: none; stroke-width: 2; }

/* Flow steps */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; counter-reset: step; }
.flow .step { padding: 24px 22px; border-left: 3px solid var(--yellow); position: relative; }
.flow .step::before { counter-increment: step; content: "0" counter(step); font-family: var(--head); font-size: 1rem; color: var(--yellow); font-weight: 700; display: block; margin-bottom: 6px; }
.flow .step h3 { margin-bottom: 6px; }
.flow .step p { color: #B9BCC1; font-size: .96rem; margin: 0; }

/* Work-package pipeline */
.wp-list { display: grid; gap: 14px; margin-top: 30px; }
.wp { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.wp .tag { font-family: var(--head); font-size: 1.5rem; font-weight: 700; color: var(--grey); }
.wp h3 { margin: 0 0 4px; }
.wp p { margin: 0; color: var(--muted); font-size: .96rem; }
.status { font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.status.done { background: #E2F4E9; color: #1D7A43; }
.status.prog { background: #FFF4D2; color: #8A6400; }
.status.plan { background: #ECECEC; color: #555; }

/* Deliverable cards */
.deliv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.deliv .card h3 { display: flex; align-items: center; gap: 10px; }
.deliv ul { padding-left: 18px; margin: 0; color: var(--muted); }
.deliv li { margin-bottom: 6px; }

/* CTA */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 26px; }

/* Footer */
footer { background: #17191C; color: #9A9EA4; padding: 40px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: #C9CCD0; text-decoration: none; }
footer a:hover { color: var(--yellow); }

/* Placeholder marker for content the team must confirm */
.todo { background: #FFF4D2; border: 1px dashed var(--yellow-dark); color: #6b5200; padding: 2px 8px; border-radius: 6px; font-size: .85em; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .grid-3, .grid-2, .deliv { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .wp { grid-template-columns: 64px 1fr; }
  .wp .status { grid-column: 2; justify-self: start; }
  .nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--line); gap: 16px; }
  .nav ul.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } section { padding: 56px 0; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.partner h3 { margin: 10px 0 4px; font-size: 1.3rem; }
.partner p { color: var(--muted); font-size: .92rem; margin: 0; }
.ptype { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: #E9EEF7; color: #34507F; }
.ptype.ind { background: #FFF4D2; color: #8A6400; }
/* Publications */
.pubs { display: grid; gap: 16px; margin-top: 26px; }
.pub { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 20px 24px; }
.pub h3 { font-family: var(--body); font-size: 1.08rem; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.pub .au { color: var(--ink-2); font-size: .95rem; margin-bottom: 4px; }
.pub .vn { color: var(--muted); font-size: .9rem; }
.pub a.doi { color: var(--yellow-dark); font-weight: 600; text-decoration: none; }
.pub a.doi:hover { text-decoration: underline; }
@media (max-width: 900px) { .partners { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .partners { grid-template-columns: 1fr; } }
