/* Layout: matches the light Kemurix dashboard. Quiet off-white page, white bordered panels, green used only for accents. Single light look by choice. */
:root {
  color-scheme: light;
  --page: #faf9f6;
  --panel: #ffffff;
  --alt: #f3f1ec; /* sidebar tone, used for alternate bands */
  --head: #f7f5f1; /* table header tone */
  --border: #e6e3dc;
  --muted: #6b6862;
  --ink: #141414;
  --tint: #e6efe8;
  --primary: #3e7a57;
  --hover: #2f6a4c;
  --deep: #1f4d36;
  --title: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
}
.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
a {
  color: var(--primary);
}
a:hover {
  color: var(--hover);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header: like the dashboard top bar */
header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
}
header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand span {
  font-family: var(--title);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 4px;
}
nav.links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 14px;
}
nav.links a {
  color: var(--muted);
  text-decoration: none;
}
nav.links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font: 600 14px var(--body);
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  border: 1px solid var(--hover);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--hover);
  color: #ffffff;
}
.btn-secondary {
  background: var(--panel);
  border: 1px solid #dad6cd;
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--alt);
  color: var(--ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint);
  color: var(--deep);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}
.pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero-text {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  min-width: 0;
}
.hero h1 {
  font-family: var(--title);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.lede {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--muted);
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
}
.figure {
  overflow: hidden;
  margin: 0;
}
.fig-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--head);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.fig-head b {
  font-weight: 600;
}
.fig-head .tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px dashed #cfcbc2;
  padding: 2px 8px;
  border-radius: 10px;
}
.figure svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  padding: 16px;
}
.figure .inner {
  fill: var(--page);
}
.figure .wall {
  fill: none;
  stroke: var(--ink);
  stroke-width: 9;
}
.figure .axis {
  stroke: #cfcbc2;
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
}
.figure .pt {
  fill: var(--primary);
}
.figure .port {
  fill: var(--deep);
}
.figure .ptlabel {
  fill: var(--ink);
  font: 500 12px var(--mono);
  text-anchor: middle;
}
.figure .cap {
  fill: var(--muted);
  font: 400 11px var(--body);
}
.readout {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.readout th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  background: var(--head);
  padding: 8px 16px;
  border-block: 1px solid var(--border);
}
.readout th:last-child,
.readout td:last-child {
  text-align: right;
}
.readout td {
  padding: 7px 16px;
  border-bottom: 1px solid #efece6;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.readout tr:last-child td {
  border-bottom: 0;
}
.readout-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.readout-cols table + table {
  border-left: 1px solid var(--border);
}
@media (prefers-reduced-motion: no-preference) {
  .figure .pt {
    animation: pop 0.35s ease-out backwards;
    transform-box: fill-box;
    transform-origin: center;
  }
  .pts .pt:nth-child(1) {
    animation-delay: 0.15s;
  }
  .pts .pt:nth-child(2) {
    animation-delay: 0.25s;
  }
  .pts .pt:nth-child(3) {
    animation-delay: 0.35s;
  }
  .pts .pt:nth-child(4) {
    animation-delay: 0.45s;
  }
  .pts .pt:nth-child(5) {
    animation-delay: 0.55s;
  }
  .pts .pt:nth-child(6) {
    animation-delay: 0.65s;
  }
  .pts .pt:nth-child(7) {
    animation-delay: 0.75s;
  }
  .pts .pt:nth-child(8) {
    animation-delay: 0.85s;
  }
  @keyframes pop {
    from {
      transform: scale(0);
    }
    to {
      transform: scale(1);
    }
  }
}

/* Sections */
section.block {
  border-top: 1px solid var(--border);
}
section.block.alt {
  background: var(--alt);
}
section.block > .wrap {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  display: grid;
  gap: 1.75rem;
}
.sec-head {
  display: grid;
  gap: 0.5rem;
  max-width: 40rem;
}
.sec-head h2 {
  font-family: var(--title);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.15;
}
.sec-head p {
  color: var(--muted);
}

/* Phases: a real sequence, laid out like a dashboard table */
.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.phases li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 16px 18px;
  border-bottom: 1px solid #efece6;
  border-right: 1px solid #efece6;
  min-width: 0;
}
.phases li:nth-child(3n) {
  border-right: 0;
}
.phases li:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.phases .n {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--tint);
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
}
.phases h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

/* Roles */
.roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.role {
  padding: 20px;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.role .where {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.role .where svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.role h3 {
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.4rem;
}
.role ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 14px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.feature {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.9rem;
}
.feature .ic {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--tint);
  color: var(--deep);
  display: grid;
  place-items: center;
  grid-row: span 2;
}
.feature svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  padding-top: 2px;
}
.feature p {
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact .wrap {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.contact .panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
}
.contact h2 {
  font-family: var(--title);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.15;
  margin-top: 0.6rem;
}
.contact p {
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: 32rem;
}
.mail {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
@media (max-width: 880px) {
  .mail {
    justify-content: flex-start;
  }
}

footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  font-size: 13px;
  color: var(--muted);
}
footer .brand img {
  width: 24px;
  height: 24px;
}
footer .brand span {
  font-size: 13px;
  letter-spacing: 3px;
}

@media (max-width: 880px) {
  .hero .wrap,
  .contact .panel {
    grid-template-columns: 1fr;
  }
  .phases {
    grid-template-columns: 1fr 1fr;
  }
  .phases li {
    border-right: 0;
  }
  .phases li:nth-child(odd) {
    border-right: 1px solid #efece6;
  }
  .phases li:nth-last-child(-n + 3) {
    border-bottom: 1px solid #efece6;
  }
  .phases li:last-child {
    border-bottom: 0;
  }
  .roles {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  nav.links {
    display: none;
  }
  header .btn {
    margin-left: auto;
  }
  .phases,
  .features {
    grid-template-columns: 1fr;
  }
  .phases li,
  .phases li:nth-child(odd) {
    border-right: 0;
  }
  .phases li:nth-last-child(-n + 3) {
    border-bottom: 1px solid #efece6;
  }
  .phases li:last-child {
    border-bottom: 0;
  }
}
