:root {
  --ink: #0b1320;
  --charcoal: #111e3a;
  --muted: #5f6f7e;
  --paper: #f3f5f8;
  --soft: #eef3f6;
  --surface: #ffffff;
  --line: #d9e2ea;
  --line-strong: #bdcad6;
  --blue: #2563ff;
  --blue-dark: #1d4ed8;
  --gold: #cdaa63;
  --gold-soft: #f2ead8;
  --shadow: 0 18px 36px rgba(11, 19, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main,
section,
article,
div,
p {
  min-width: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: rgba(45, 111, 159, 0.35);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
}

p,
ul,
ol {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 2.12rem;
  max-width: min(15ch, 100%);
}

.nowrap {
  white-space: nowrap;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.12rem;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(248, 245, 239, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  position: relative;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(156px, 48vw, 318px);
  height: auto;
}

.nav-toggle {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-panel {
  grid-column: 1 / -1;
  display: none;
  gap: 8px;
  padding: 8px 0 10px;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.site-header.nav-open .nav-panel {
  display: grid;
}

.site-nav {
  display: grid;
  gap: 4px;
  align-items: center;
}

.site-nav a,
.header-contact {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: rgba(45, 111, 159, 0.08);
}

.site-nav a:hover {
  background: rgba(45, 111, 159, 0.08);
}

.header-contact {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.header-contact:hover {
  background: var(--blue-dark);
  color: var(--surface);
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(248, 245, 239, 0.96)),
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding: 56px 0 44px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.hero-copy p,
.page-hero p,
.section-heading p,
.lead {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-copy h1 + p,
.page-hero h1 + p {
  margin-top: 18px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.button:hover {
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

.button-primary:hover {
  background: var(--blue-dark);
  color: var(--surface);
}

.systems-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.board-header strong {
  color: var(--ink);
}

.board-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.board-list {
  display: grid;
}

.board-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
}

.board-row + .board-row {
  border-top: 1px solid var(--line);
}

.board-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.board-dot.gold {
  background: var(--gold);
}

.board-row strong {
  display: block;
}

.board-row span {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding: 58px 0;
}

.section-compact {
  padding: 34px 0;
}

.section + .section {
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.section-muted {
  background: #f1f5f7;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-compact .section-heading {
  margin-bottom: 0;
}

.section-compact h2 {
  font-size: 1.55rem;
}

.asset-note {
  max-width: 820px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.facts,
.contact-details {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
}

.fact-row,
.contact-row {
  display: grid;
  gap: 4px;
}

.fact-row dt,
.contact-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.fact-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.venture-card,
.area-card,
.work-card,
.text-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 14px 26px rgba(16, 32, 51, 0.05);
}

.venture-card {
  grid-template-rows: auto auto 1fr;
}

.venture-card p,
.area-card p,
.work-card p,
.text-card p {
  color: var(--muted);
}

.venture-logo-strip {
  display: flex;
  min-height: 48px;
  align-items: center;
}

.venture-logo-strip.detail-logo {
  min-height: 58px;
}

.venture-logo-image {
  display: block;
  object-fit: contain;
}

.venture-logo-image.wide {
  width: min(178px, 100%);
  max-height: 44px;
}

.venture-logo-image.mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(16, 32, 51, 0.12);
}

.venture-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1;
}

.krodik-wordmark {
  gap: 6px;
  font-size: 1.45rem;
  font-weight: 780;
  text-transform: lowercase;
}

.krodik-wordmark em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 650;
}

.montate-wordmark {
  border-left: 4px solid #43d6bc;
  padding-left: 10px;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 820;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid rgba(45, 111, 159, 0.22);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(45, 111, 159, 0.08);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.tag.gold {
  border-color: rgba(182, 138, 47, 0.34);
  background: var(--gold-soft);
  color: #6c5017;
}

.tag.neutral {
  border-color: var(--line);
  background: var(--soft);
  color: var(--charcoal);
}

.page-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero h1 {
  max-width: min(16ch, 100%);
}

.content-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 780px;
}

.content-stack ul {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
  color: var(--muted);
}

.venture-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.venture-detail {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(16, 32, 51, 0.05);
}

.venture-detail p {
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.company-info-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  color: var(--ink);
  font-style: normal;
  font-weight: 650;
  box-shadow: 0 14px 26px rgba(16, 32, 51, 0.05);
}

.company-info-block strong {
  display: inline-block;
  margin-bottom: 4px;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 750;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue-dark);
  outline: 3px solid rgba(45, 111, 159, 0.18);
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--ink);
  color: var(--surface);
}

.cta-band h2,
.cta-band p {
  color: var(--surface);
}

.cta-band p {
  opacity: 0.82;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  display: grid;
  gap: 24px;
  padding: 34px 0;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand strong {
  color: var(--surface);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a,
.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
}

@media (min-width: 760px) {
  h1 {
    font-size: 3.34rem;
  }

  .hero-copy h1 {
    font-size: 3.08rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .section-compact h2 {
    font-size: 1.78rem;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 12px 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-panel,
  .site-header.nav-open .nav-panel {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0;
    border-top: 0;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    grid-column: auto;
    gap: 6px;
    justify-content: flex-end;
  }

  .header-contact {
    width: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    align-items: center;
    padding: 78px 0 60px;
  }

  .split,
  .contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    align-items: start;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

@media (min-width: 1040px) {
  .card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
