/* ===== Herakles Engineering Solutions — monochrome system ===== */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --paper: #f5f5f3;
  --grey: #5f5f5f;
  --line: #d8d8d6;
  --line-dark: #2b2b2b;
  --max: 1240px;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--black);
  background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.wrap { width: min(var(--max), 90%); margin-inline: auto; }

/* Labels */
.label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.label::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.dark .label { color: #9a9a9a; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 30px; font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--black);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--white); color: var(--black); }
.btn-line { background: transparent; color: var(--black); }
.btn-line:hover { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: #555; }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { padding: 11px 20px; font-size: .74rem; }
.arrow::after { content: '→'; font-family: var(--sans); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.bar { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 1.35rem; font-weight: 700; letter-spacing: .22em; }
.brand span { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-top: 7px; }
.nav { display: flex; align-items: center; gap: 44px; }
.links { display: flex; gap: 34px; }
.links a { font-size: .92rem; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.links a:hover, .links a.active { border-bottom-color: var(--black); }
.logins { display: flex; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--black); cursor: pointer; position: relative; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after {
  position: absolute; left: 50%; margin-left: -10px; width: 20px; height: 1.5px; background: var(--black); transition: .25s;
}
.menu-btn i { top: 50%; } .menu-btn i::before, .menu-btn i::after { content: ''; margin-left: 0; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn.open i { background: transparent; }
.menu-btn.open i::before { top: 0; transform: rotate(45deg); }
.menu-btn.open i::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 90px 0 100px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: end; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.045em; line-height: .98; margin-bottom: 34px; }
.hero p.lead { font-size: 1.2rem; max-width: 600px; color: var(--grey); margin-bottom: 42px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.figure { border: 1px solid var(--black); padding: 26px; background: var(--white); }
.figure svg { width: 100%; height: auto; stroke: var(--black); fill: none; stroke-width: 1; }
.figure figcaption { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }

/* Facts band */
.facts { background: var(--black); color: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 38px 30px; border-left: 1px solid var(--line-dark); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8d8d8d; margin-bottom: 10px; }
.fact strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }

/* Sections */
.section { padding: 110px 0; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--black); color: #bdbdbd; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-bottom: 64px; align-items: end; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.section-head p { color: var(--grey); font-size: 1.05rem; }
.dark .section-head p { color: #9a9a9a; }

/* Editorial rows */
.rows { border-top: 1px solid var(--black); }
.row {
  display: grid; grid-template-columns: 90px 1fr 1.2fr 40px; gap: 30px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line); transition: background .25s, color .25s, padding .25s;
}
.row .n { font-family: var(--mono); font-size: .8rem; color: var(--grey); }
.row h3 { font-size: 1.6rem; }
.row p { color: var(--grey); font-size: .98rem; }
.row .go { font-size: 1.4rem; text-align: right; }
a.row:hover { background: var(--black); color: var(--white); padding-left: 24px; padding-right: 24px; }
a.row:hover .n, a.row:hover p { color: #b5b5b5; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.split h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 26px; }
.prose p { margin-bottom: 20px; color: #3f3f3f; }
.dark .prose p { color: #a8a8a8; }
.prose p:last-child { margin-bottom: 0; }
.list-plain li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; gap: 18px; }
.list-plain li:last-child { border-bottom: 1px solid var(--line); }
.list-plain li span { font-family: var(--mono); font-size: .78rem; color: var(--grey); padding-top: 4px; min-width: 28px; }
.dark .list-plain li { border-color: var(--line-dark); }
.dark .list-plain li:last-child { border-color: var(--line-dark); }
.dark .list-plain li span { color: #777; }

/* Grid cards (hairline) */
.hair { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--black); border-left: 1px solid var(--line); }
.hair > div { padding: 40px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hair h3 { font-size: 1.3rem; margin: 10px 0 12px; }
.hair p { color: var(--grey); font-size: .97rem; }
.hair .tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }

/* Definition table */
.defs { border-top: 1px solid var(--black); }
.defs div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); padding-top: 4px; }
.defs dd { font-weight: 500; }

/* Page hero */
.page-hero { padding: 100px 0 90px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.045em; max-width: 920px; margin-bottom: 26px; }
.page-hero p { font-size: 1.15rem; color: var(--grey); max-width: 640px; }
.crumbs { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 34px; }
.crumbs a:hover { color: var(--black); text-decoration: underline; }

/* Services detail */
.svc { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--black); scroll-margin-top: 100px; }
.svc:last-child { border-bottom: 1px solid var(--black); }
.svc .n { font-family: var(--mono); color: var(--grey); font-size: .85rem; padding-top: 10px; }
.svc h3 { font-size: 2rem; margin-bottom: 14px; }
.svc p { color: var(--grey); }
.svc li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .97rem; }
.svc li:first-child { border-top: 0; padding-top: 0; }

/* Investors table */
.t-head, .t-row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 24px; padding: 22px 0; align-items: center; }
.t-head { font-family: var(--mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--grey); border-top: 1px solid var(--black); border-bottom: 1px solid var(--line); padding: 16px 0; }
.t-row { border-bottom: 1px solid var(--line); }
.t-fy { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.dl { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; border-bottom: 1px solid var(--black); padding-bottom: 2px; }
.dl::before { content: '↓'; }
.dl:hover { opacity: .6; }
.na { color: #8d8d8d; font-size: .9rem; font-family: var(--mono); }
.notice { border: 1px solid var(--line); background: var(--paper); padding: 22px 26px; font-size: .92rem; color: #3f3f3f; margin-top: 40px; }

/* CTA */
.cta { background: var(--black); color: #b5b5b5; padding: 100px 0; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.cta h2 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3.6rem); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.c-item { padding: 22px 0; border-top: 1px solid var(--line); }
.c-item:last-of-type { border-bottom: 1px solid var(--line); }
.c-item small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.c-item a:hover { text-decoration: underline; }
.map { margin-top: 32px; border: 1px solid var(--black); height: 280px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--grey); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 14px 0; border: 0; border-bottom: 1px solid var(--black);
  background: transparent; border-radius: 0; color: var(--black); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-width: 2px; padding-bottom: 13px; }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 18px; font-size: .92rem; border: 1px solid var(--black); }
.form-status.ok, .form-status.err { display: block; }
.form-status.err { background: var(--black); color: var(--white); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--black); color: #9a9a9a; padding: 90px 0 30px; font-size: .92rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.4fr; gap: 50px; padding-bottom: 60px; }
.site-footer .brand strong { color: var(--white); }
.site-footer .brand span { color: #777; }
.site-footer h4 { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand p { margin-top: 22px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: #7d7d7d; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: 80px; left: 0; right: 0; bottom: 0; background: var(--white);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 30px;
    padding: 36px 5%; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .links { flex-direction: column; gap: 0; }
  .links a { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .logins { flex-direction: column; }
  .logins .btn { padding: 16px; }
  .hero-grid, .split, .section-head, .contact-grid, .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .figure { max-width: 380px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta .actions { justify-content: flex-start; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .hero { padding: 60px 0 70px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row .go { display: none; }
  a.row:hover { padding-left: 0; padding-right: 0; }
  .hair { grid-template-columns: 1fr; }
  .defs div { grid-template-columns: 1fr; gap: 4px; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .t-head { display: none; }
  .t-row { grid-template-columns: 1fr; gap: 10px; }
  .t-row [data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
}
