/* ============ Kyros IQ Group — site styles ============ */
:root {
  --paper: #F4F1EA;
  --paper-2: #ECE7DB;
  --paper-3: #E3DCCC;
  --ink: #15171C;
  --ink-2: #1C2026;
  --gold: #9C5E1E;
  --gold-d: #E2A24E;
  --muted: #6E6860;
  --muted-d: #A9A398;
  --line: rgba(21,23,28,0.13);
  --line-d: rgba(244,241,234,0.16);
  --maxw: 1180px;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.sec-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.04;
  letter-spacing: -0.01em; margin-top: 16px; text-wrap: balance;
}
.sec-head { margin-bottom: 54px; max-width: 760px; }
.lead {
  font-family: var(--serif); font-size: 19px; line-height: 1.5;
  color: var(--muted); margin-top: 20px;
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; color: inherit; }
.logo .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo .wm-main {
  font-weight: 600; font-size: 19px; letter-spacing: 0.15em;
  text-transform: uppercase; display: flex; align-items: baseline;
}
.logo .wm-main .iq { margin-left: 0.32em; color: var(--gold); font-weight: 600; }
.logo .wm-sub {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.44em;
  text-transform: uppercase; margin-top: 6px; margin-left: 2px; opacity: 0.6;
}
.logo.on-dark .wm-main .iq { color: var(--gold-d); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: 0.01em; padding: 12px 20px; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.on-dark .btn-primary { background: var(--gold-d); color: var(--ink); }
.on-dark .btn-primary:hover { background: var(--paper); }
.on-dark .btn-ghost { color: var(--paper); border-color: var(--line-d); }
.on-dark .btn-ghost:hover { border-color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,234,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted); transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 22px; }

/* mobile menu toggle — hidden on desktop, shown below 920px.
   The checkbox is visually hidden but stays in the DOM so its label
   reliably toggles it and keyboard users can still focus it. */
.nav-toggle {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nav-burger { display: none; }

/* ---------- hero ---------- */
.hero { padding: 86px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 64px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 70px); line-height: 1.0;
  letter-spacing: -0.018em; margin-top: 26px; text-wrap: balance;
}
.hero h1 .gold { color: var(--gold); font-style: italic; }
.hero p.sub {
  font-family: var(--serif); font-size: 20px; line-height: 1.52;
  color: var(--muted); margin-top: 28px; max-width: 540px;
}
.hero .cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* hero chart card */
.surface {
  background: var(--ink); border-radius: 4px; padding: 26px 28px 22px;
  color: var(--paper); box-shadow: 0 30px 70px -40px rgba(21,23,28,0.55);
}
.surface .s-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted-d); margin-bottom: 10px;
}
.surface .s-head .live { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-d); }
.surface .s-head .live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-d); }
.surface svg.chart { width: 100%; height: auto; display: block; }

/* ---------- definition strip ---------- */
.defstrip { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-d); }
.defstrip .wrap {
  padding: 30px 40px; display: flex; align-items: center; gap: 22px;
  justify-content: center; text-align: center; flex-wrap: wrap;
}
.defstrip .key { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--gold-d); text-transform: lowercase; }
.defstrip .def { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--paper); }
.defstrip .def b { font-style: normal; font-weight: 500; color: var(--gold-d); }

/* ---------- section base ---------- */
section.band { padding: 100px 0; }
.band.paper-2 { background: var(--paper-2); }
.band.ink { background: var(--ink); color: var(--paper); }
.band.ink .eyebrow { color: var(--gold-d); }
.band.ink .lead { color: var(--muted-d); }

/* ---------- approach ---------- */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 92px 1fr; gap: 32px;
  padding: 34px 0; border-top: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--mono); font-size: 15px; color: var(--gold); padding-top: 6px; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: -0.01em; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); margin-top: 11px; max-width: 640px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 34px 32px 32px; transition: transform .22s ease, box-shadow .22s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -38px rgba(21,23,28,0.5); }
.svc .idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--gold); }
.svc h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-top: 16px; letter-spacing: -0.01em; }
.svc p.d { font-size: 15.5px; line-height: 1.58; color: var(--muted); margin-top: 12px; }
.svc ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.svc li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.svc li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  background: var(--gold); border-radius: 1px; transform: rotate(45deg);
}

/* ---------- sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sector { background: var(--paper); padding: 32px 28px 36px; min-height: 188px; display: flex; flex-direction: column; }
.band.paper-2 .sector { background: var(--paper-2); }
.sector .si { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--gold); }
.sector h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; margin-top: 20px; }
.sector p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-top: 11px; }
.sector .tick { margin-top: auto; }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 38px 56px; margin-top: 8px; }
.why-item { display: grid; grid-template-columns: 30px 1fr; gap: 18px; }
.why-item .gmark { width: 22px; height: 22px; margin-top: 4px; color: var(--gold-d); }
.why-item h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.why-item p { font-size: 15.5px; line-height: 1.58; color: var(--muted-d); margin-top: 9px; }

/* ---------- contact ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: start; }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.015em; }
.contact .sub { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--muted-d); margin-top: 22px; max-width: 480px; }
.contact .panel { border: 1px solid var(--line-d); border-radius: 4px; padding: 32px; }
.contact .panel .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-d); }
.contact .panel .mail { font-family: var(--serif); font-size: 26px; margin-top: 8px; color: var(--paper); display: inline-block; border-bottom: 1px solid var(--gold-d); padding-bottom: 3px; transition: color .2s; }
.contact .panel .mail:hover { color: var(--gold-d); }
.contact .panel .row2 { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-d); display: flex; gap: 30px; flex-wrap: wrap; }
.contact .panel .row2 .lbl + div { font-size: 15px; margin-top: 7px; color: var(--paper); }
.contact .panel .mail-sm { font-family: var(--serif); font-size: 17px; color: var(--paper); display: inline-block; margin-top: 7px; border-bottom: 1px solid var(--gold-d); padding-bottom: 2px; transition: color .2s; }
.contact .panel .mail-sm:hover { color: var(--gold-d); }

/* ---------- contact form ---------- */
.cform { display: flex; flex-direction: column; gap: 16px; }
.cform .field { display: flex; flex-direction: column; gap: 7px; }
.cform label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-d); }
.cform label .opt { letter-spacing: 0.02em; text-transform: none; opacity: 0.75; }
.cform input, .cform textarea {
  font-family: var(--sans); font-size: 15px; color: var(--paper);
  background: rgba(244,241,234,0.04); border: 1px solid var(--line-d);
  border-radius: 3px; padding: 12px 13px; width: 100%; resize: vertical;
  transition: border-color .18s ease, background .18s ease;
}
.cform input:focus, .cform textarea:focus {
  outline: none; border-color: var(--gold-d); background: rgba(244,241,234,0.07);
}
.cform input:user-invalid, .cform textarea:user-invalid { border-color: #C9603E; }
.cform .cform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform-submit { align-self: flex-start; margin-top: 4px; background: var(--gold-d); color: var(--ink); }
.cform-submit:hover { background: var(--paper); color: var(--ink); }
.cform-submit:disabled { opacity: 0.6; cursor: default; }
.cform-status { font-family: var(--sans); font-size: 14px; line-height: 1.5; margin: 2px 0 0; }
.cform-status.ok { color: var(--gold-d); }
.cform-status.err { color: #E08A66; }

/* ---------- footer ---------- */
.footer { background: #0F1115; color: var(--paper); padding: 56px 0 40px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .fcol { display: flex; flex-direction: column; gap: 12px; }
.footer .fcol a { font-size: 14px; color: var(--muted-d); transition: color .18s; }
.footer .fcol a:hover { color: var(--paper); }
.footer .fhead { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 4px; }
.footer .legal { width: 100%; border-top: 1px solid var(--line-d); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-d); flex-wrap: wrap; gap: 10px; }

/* ---------- reveal (safe: visible by default, animate only as enhancement) ---------- */
@keyframes kFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: kFadeUp .7s ease both; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero .surface { max-width: 520px; }
  .svc-grid { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; align-items: start; }

  /* --- mobile navigation --- */
  .nav .wrap { position: relative; }
  .logo { margin-right: auto; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 9px; margin-left: 16px;
    border: 1px solid var(--line); border-radius: 2px; background: transparent;
    cursor: pointer; flex: 0 0 auto; order: 3;
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%; background: var(--ink);
    border-radius: 2px; transition: transform .22s ease, opacity .18s ease;
  }
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 74px; left: 0; right: 0; z-index: 60;
    background: rgba(244,241,234,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    padding: 0 40px;
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease;
  }
  .nav-links a {
    padding: 16px 0; width: 100%; font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle:checked ~ .nav-links {
    max-height: 320px; opacity: 1; pointer-events: auto; padding: 6px 40px 14px;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--gold); outline-offset: 2px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .sectors { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step .num { padding-top: 0; }
  section.band { padding: 72px 0; }
}
