/* ============================================================
   SKHID Consulting — design system
   Pure black canvas · monospace type · hairline grid · blue accent
   ============================================================ */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #101010;
  --bg-card:   #0c0c0c;
  --bg-light:  #f3f2ef;   /* contrast-break section */
  --bg-panel:  #e6e4df;   /* gray panel inside light section */

  --fg:        #f4f4f2;
  --fg-dim:    #8d8d8a;
  --fg-faint:  #4a4a48;
  --fg-dark:   #131312;   /* text on light bg */
  --fg-dark-dim:#5c5b58;

  --line:       rgba(255,255,255,0.16);
  --line-soft:  rgba(255,255,255,0.08);
  --line-dark:  rgba(0,0,0,0.18);

  --accent:        #2e8fd4;     /* Donetsk-flag azure — overridable via Tweaks */
  --accent-bright: color-mix(in oklab, var(--accent), white 18%);
  --accent-dim:    color-mix(in oklab, var(--accent), transparent 86%);
  --accent-line:   color-mix(in oklab, var(--accent), transparent 55%);

  --gold:        #f3c623;       /* Donetsk-flag gold — brand highlight */
  --gold-line:   color-mix(in oklab, var(--gold), transparent 60%);

  --font-display: "Space Mono", monospace;
  --font-mono:    "JetBrains Mono", monospace;

  --maxw: 1480px;
  --gutter: clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; }

/* ---- typographic helpers ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.mono-label {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.idx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
}
.accent { color: var(--accent-bright); }

/* outlined display text */
.outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--fg);
  text-stroke: 1.4px var(--fg);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--line);
  background: transparent;
  padding: 18px 26px;
  position: relative;
  overflow: hidden;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-accent { border-color: var(--accent-line); }
.btn-accent::before { background: var(--accent); }
.btn-accent:hover { color: #fff; border-color: var(--accent); }

/* on light bg */
.btn-dark {
  color: var(--fg-dark);
  border-color: var(--line-dark);
}
.btn-dark::before { background: var(--fg-dark); }
.btn-dark:hover { color: var(--bg-light); border-color: var(--fg-dark); }

/* ---- header ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform .5s var(--ease), background .4s;
}
.header.hidden { transform: translateY(-100%); }
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 78px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { height: 26px; width: 36px; flex: 0 0 auto; display: block; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: 0.16em;
}
.brand-sub {
  font-size: 9px; letter-spacing: 0.34em; color: var(--fg-dim);
  text-transform: uppercase; margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 46px); }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg); position: relative; padding: 6px 0; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent-bright); transition: width .35s var(--ease);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; padding: 14px 22px; font-size: 13px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; color: var(--fg); }

/* ---- hero ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; width: 100%; padding-top: 90px; padding-bottom: 60px; }
.hero-flag {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(34px, 7vh, 80px);
}
.hero-flag .chip { position: relative; width: 27px; height: 18px; flex: 0 0 auto; border: 1px solid var(--line); overflow: hidden; }
.hero-flag .chip .sky { position: absolute; inset: 0 0 50% 0; background: var(--accent); }
.hero-flag .chip .coal { position: absolute; inset: 50% 0 0 0; background: #0c0c0d; }
.hero-flag .chip .sun { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); }

.hero-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.96;
  font-size: clamp(56px, 12.5vw, 188px);
  letter-spacing: -0.01em;
  margin-bottom: clamp(40px, 8vh, 96px);
  min-height: 1.9em;
}
.hero-display .line { display: block; overflow: hidden; }
.hero-display .line > span {
  display: inline-block;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.hero-sub {
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* hero pager */
.hero-pager { display: flex; align-items: center; gap: 18px; margin-top: clamp(40px, 8vh, 80px); }
.pager-num { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.1em; }
.pager-track { position: relative; width: clamp(120px, 22vw, 320px); height: 1px; background: var(--line); cursor: pointer; }
.pager-fill { position: absolute; left: 0; top: 0; height: 1px; background: var(--accent-bright); transition: width .6s var(--ease); }
.pager-total { color: var(--fg-faint); }

/* hero chevron motif */
.hero-motif {
  position: absolute; top: 0; right: -6%; bottom: 0; width: 60%;
  z-index: 1; pointer-events: none; opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
          mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.hero-motif svg { width: 100%; height: 100%; }
.hero-motif .chev { fill: none; stroke-width: 1; }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 26px; left: var(--gutter); z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-dim);
}
.scroll-cue .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); animation: blink 2s var(--ease) infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ---- section heading ---- */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px);
}
.sec-kicker { display: flex; align-items: center; gap: 16px; }
.sec-kicker .dash { width: 40px; height: 1px; background: var(--accent-line); }

/* ---- about ---- */
.about { padding: clamp(80px, 12vh, 170px) 0 clamp(60px, 9vh, 130px); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.about-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 60px); line-height: 1.04; letter-spacing: -0.01em;
}
.about-title .sep { color: var(--accent-bright); font-weight: 400; }
.about-body { font-size: clamp(16px, 1.3vw, 21px); line-height: 1.65; color: #c9c9c6; max-width: 52ch; }
.about-body strong { color: var(--fg); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(56px, 8vh, 110px); background: var(--line-soft); border: 1px solid var(--line-soft); }
.stat { background: var(--bg); padding: 30px clamp(20px, 2.4vw, 38px); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1; }
.stat-num .suf { color: var(--gold); }
.stat-label { margin-top: 14px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }

.trust { margin-top: clamp(46px, 6vh, 80px); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 60px); padding-top: 28px; border-top: 1px solid var(--line-soft); }
.trust-badge { display: flex; align-items: center; gap: 12px; color: var(--fg-dim); }
.trust-badge .stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; }
.trust-badge .tname { font-weight: 600; letter-spacing: 0.05em; color: var(--fg); font-size: 14px; }
.trust-badge .tmeta { font-size: 11.5px; color: var(--fg-dim); }

/* ---- services ---- */
.services { padding: clamp(70px, 10vh, 140px) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc {
  position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(26px, 2.4vw, 40px); min-height: clamp(300px, 30vw, 400px);
  display: flex; flex-direction: column; cursor: pointer; overflow: hidden;
  transition: background .4s var(--ease);
}
.svc:hover { background: var(--bg-2); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-num { font-family: var(--font-mono); font-size: 13px; color: var(--fg-faint); letter-spacing: 0.1em; }
.svc-plus { width: 22px; height: 22px; position: relative; opacity: .55; transition: opacity .4s, transform .5s var(--ease); }
.svc:hover .svc-plus { opacity: 1; transform: rotate(90deg); color: var(--accent-bright); }
.svc-plus::before, .svc-plus::after { content:""; position:absolute; background: currentColor; }
.svc-plus::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.svc-plus::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.svc-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 2.3vw, 36px); line-height: 1.1; margin-top: auto;
  transition: transform .5s var(--ease);
}
.svc-detail {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease), opacity .4s;
  opacity: 0; margin-top: 0;
}
.svc:hover .svc-detail { grid-template-rows: 1fr; opacity: 1; margin-top: 22px; }
.svc-detail-inner { overflow: hidden; }
.svc-detail ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.svc-detail li { font-size: 14px; color: #c4c4c1; display: flex; gap: 11px; align-items: baseline; }
.svc-detail li::before { content: ""; flex: 0 0 6px; width: 6px; height: 1px; background: var(--accent-bright); transform: translateY(-4px); }
.svc-accent-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent-bright); transition: width .5s var(--ease); }
.svc:hover .svc-accent-line { width: 100%; }

/* ---- process (light section) ---- */
.process { background: var(--bg-light); color: var(--fg-dark); padding: clamp(80px, 12vh, 160px) 0; }
.process .eyebrow, .process .sec-kicker .dash { color: var(--fg-dark-dim); }
.process .sec-kicker .dash { background: var(--fg-dark); }
.proc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; border: 1px solid var(--line-dark); }
.proc-list { padding: clamp(28px, 3vw, 56px); }
.proc-item { border-bottom: 1px solid var(--line-dark); padding: 24px 0; cursor: pointer; }
.proc-item:last-child { border-bottom: 0; }
.proc-item-head { display: flex; gap: 22px; align-items: flex-start; }
.proc-item-num { font-family: var(--font-mono); font-size: 14px; color: var(--fg-dark-dim); padding-top: 6px; flex: 0 0 auto; }
.proc-item-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(19px, 1.9vw, 28px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--fg-dark-dim); transition: color .4s var(--ease);
}
.proc-item.active .proc-item-title { color: var(--fg-dark); }
.proc-item.active .proc-item-num { color: var(--accent); }
.proc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.proc-item.active .proc-body { grid-template-rows: 1fr; }
.proc-body-inner { overflow: hidden; }
.proc-body p { padding-top: 16px; font-size: 15px; line-height: 1.6; color: var(--fg-dark-dim); max-width: 48ch; }
.proc-panel { background: var(--bg-panel); padding: clamp(28px, 3vw, 56px); display: flex; flex-direction: column; justify-content: space-between; }
.proc-panel-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(80px, 12vw, 168px); line-height: 0.8; color: var(--fg-dark); }
.proc-panel-meta { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.proc-panel-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line-dark); padding-top: 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.proc-panel-row span:last-child { color: var(--fg-dark); font-weight: 600; }

/* ---- why us ---- */
.why { padding: clamp(80px, 12vh, 170px) 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.why-title {
  font-family: var(--font-mono); font-weight: 300; text-transform: uppercase;
  font-size: clamp(30px, 3.7vw, 58px); line-height: 1.08; letter-spacing: 0.01em;
}
.why-title b { font-weight: 700; }
.why-title .accent { font-weight: 700; }
.why-list { display: flex; flex-direction: column; }
.why-item { padding: clamp(26px, 3vh, 40px) 0; border-top: 1px solid var(--line-soft); }
.why-item:first-child { border-top: 0; padding-top: 0; }
.why-item h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: 0.02em; margin-bottom: 16px; display: flex; align-items: center; gap: 16px; }
.why-item h3 .wn { font-family: var(--font-mono); font-size: 13px; color: var(--accent-bright); font-weight: 500; }
.why-item p { font-size: 15.5px; line-height: 1.62; color: #bdbdba; max-width: 50ch; }

/* ---- contact ---- */
.contact { padding: clamp(80px, 12vh, 160px) 0 clamp(60px, 9vh, 120px); border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.02em; }
.contact-title .outline { -webkit-text-stroke-width: 1.4px; }
.contact-lead { margin-top: 28px; font-size: 16px; line-height: 1.6; color: #c2c2bf; max-width: 38ch; }
.contact-meta { margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.contact-meta a, .contact-meta div { display: flex; gap: 14px; font-size: 14px; letter-spacing: 0.04em; color: var(--fg-dim); align-items: center; }
.contact-meta .k { color: var(--fg-faint); width: 80px; flex: 0 0 auto; text-transform: uppercase; font-size: 12px; letter-spacing: 0.14em; }
.contact-meta .v { color: var(--fg); }
.contact-meta a:hover .v { color: var(--accent-bright); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.field { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.field.full { grid-column: 1 / -1; }
.field label { position: absolute; top: 16px; left: 20px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); pointer-events: none; transition: color .3s; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; color: var(--fg);
  font-family: var(--font-mono); font-size: 16px; padding: 40px 20px 18px;
  outline: none; resize: none;
}
.field select { appearance: none; cursor: pointer; padding-right: 44px; }
.field select option { background: #121212; color: var(--fg); }
.field .chev-down { position: absolute; right: 20px; top: 44px; width: 9px; height: 9px; border-right: 1px solid var(--fg-dim); border-bottom: 1px solid var(--fg-dim); transform: rotate(45deg); pointer-events: none; }
.field textarea { min-height: 120px; }
.field:focus-within { background: var(--bg-2); }
.field:focus-within label { color: var(--accent-bright); }
.field.error { background: oklch(0.55 0.18 25 / 0.10); }
.field.error label { color: oklch(0.72 0.18 25); }
.form-foot { grid-column: 1/-1; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 22px 20px; }
.form-note { font-size: 12px; color: var(--fg-dim); letter-spacing: 0.04em; max-width: 34ch; }
.submit-btn { padding: 18px 30px; }
.form-success { border: 1px solid var(--accent-line); padding: clamp(40px, 6vw, 72px); text-align: left; }
.form-success .sx-mark { width: 46px; height: 46px; border: 1px solid var(--accent-line); display: grid; place-items: center; color: var(--accent-bright); margin-bottom: 28px; }
.form-success h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 3vw, 38px); margin-bottom: 16px; }
.form-success p { color: #bdbdba; font-size: 15px; line-height: 1.6; max-width: 44ch; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line-soft); padding: clamp(50px, 7vh, 90px) 0 36px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-nav { display: flex; gap: clamp(28px, 4vw, 64px); flex-wrap: wrap; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--fg-dim); margin-bottom: 11px; transition: color .3s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { margin-top: clamp(46px, 6vh, 80px); padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; letter-spacing: 0.08em; color: var(--fg-faint); text-transform: uppercase; }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---- floating contact pill ---- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,10,10,.85); backdrop-filter: blur(10px);
  display: grid; place-items: center; color: var(--fg);
  transition: background .4s, color .4s, transform .4s var(--ease); cursor: pointer;
}
.float-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-panel { flex-direction: row; align-items: center; gap: 30px; }
  .proc-panel-meta { margin-top: 0; flex: 1; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .svc-detail { grid-template-rows: 1fr !important; opacity: 1 !important; margin-top: 18px !important; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field { border-right: 1px solid var(--line); }
  .proc-panel { flex-direction: column; align-items: flex-start; }
  .hero-display { min-height: 2.4em; }
}

/* ---- mobile menu ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; padding: 100px var(--gutter) 40px;
  transform: translateY(-100%); transition: transform .5s var(--ease); gap: 6px;
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--font-display); font-size: 32px; font-weight: 700; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
