/* nepf.in — Northeast People Frontier. Ink + teal on warm paper, one typeface. */

:root {
  --ink: #1a1d21;
  --ink-2: #353b41;
  --muted: #5b6168;
  --paper: #f7f6f2;
  --white: #ffffff;
  --rule: #e2dfd7;
  --rule-strong: #cfcbc1;
  --teal: #3a9aa5;       /* brand — the ".in" and the dot */
  --teal-ink: #23707a;   /* teal for text and buttons on light backgrounds (AA) */
  --teal-soft: #e6f2f3;
  --danger: #b3261e;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec-y: clamp(72px, 10vw, 136px);
  --radius: 10px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 4px; }
.sec-ink :focus-visible, .site-foot :focus-visible { outline-color: var(--teal); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- wordmark ---------- */
.logo {
  display: inline-flex; align-items: baseline;
  font-weight: 800; font-size: 26px; letter-spacing: -0.045em; line-height: 1;
  text-decoration: none; color: var(--ink);
}
.logo i { font-style: normal; color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--teal-ink); border-color: var(--teal-ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 246 242 / .88);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-head.scrolled { border-bottom-color: var(--rule); }
.head-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .nav-login { padding-left: 28px; border-left: 1px solid var(--rule-strong); }
.head-actions { display: flex; align-items: center; gap: 10px; }

.menu { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.menu span:first-child { top: 17px; }
.menu span:last-child { top: 25px; }
.menu[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
.menu[aria-expanded='true'] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 8.4vw, 116px);
  line-height: .98; letter-spacing: -0.045em; font-weight: 700;
  max-width: 14ch;
}
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px;
  margin-top: clamp(32px, 5vw, 56px);
}
.lede { max-width: 54ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--ink);
}
.facts div { padding: 22px 24px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts dt { font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 20ch; }

/* ---------- sections ---------- */
.sec { padding: var(--sec-y) 0 0; }
.sec:last-of-type { padding-bottom: var(--sec-y); }
.grid { display: grid; grid-template-columns: minmax(160px, 3fr) 9fr; gap: 24px 48px; }
.sec-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--ink);
  align-self: start;
}
.num { font-size: 13px; font-weight: 600; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sec-body { padding-top: 18px; border-top: 1px solid var(--rule); min-width: 0; }
.sec-intro { max-width: 30ch; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }

/* about */
.statement { max-width: 22ch; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.statement span { color: var(--teal-ink); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 48px; max-width: 880px; color: var(--ink-2); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--rule); }
.trio li { padding: 20px 24px 0 0; }
.trio li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.trio b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.trio span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* services */
.services { margin-top: 56px; border-top: 1px solid var(--rule); }
.svc {
  display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr); gap: 8px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.svc-n { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 6px; }
.svc h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; line-height: 1.2; font-weight: 600; }
.svc p { color: var(--ink-2); max-width: 52ch; }
@media (hover: hover) {
  .svc { transition: background-color .2s ease; }
  .svc:hover h3 { color: var(--teal-ink); }
}

/* technology (ink band) */
.sec-ink { margin-top: var(--sec-y); padding-bottom: var(--sec-y); background: var(--ink); color: #f1f1ee; }
.sec-ink .sec-head { border-top-color: #f1f1ee; }
.sec-ink .sec-body { border-top-color: #33383e; }
.sec-ink .num { color: var(--teal); }
.sec-ink .sec-intro { color: #fff; }
.shots { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; margin-top: 56px; align-items: start; }
.shot figcaption { margin-top: 18px; font-size: 15px; line-height: 1.55; color: #a9afb5; max-width: 46ch; }
.shot figcaption b { color: #fff; font-weight: 600; }
.note { margin-top: 32px; font-size: 13px; color: #8d939a; }

.phone {
  max-width: 300px; margin: 0 auto; padding: 18px 16px 16px;
  background: #fff; color: var(--ink); border-radius: 30px;
  border: 8px solid #2b3036;
  font-size: 14px;
}
.ph-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--muted); }
.ph-bar { height: 4px; margin: 10px 0 16px; background: #eceae4; border-radius: 4px; overflow: hidden; }
.ph-bar i { display: block; width: 50%; height: 100%; background: var(--teal); }
.ph-q { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.ph-ops { margin-top: 14px; display: grid; gap: 8px; }
.ph-ops li { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; font-size: 13px; }
.ph-ops li.on { border-color: var(--teal-ink); background: var(--teal-soft); font-weight: 600; }
.ph-next { margin-top: 14px; padding: 11px; text-align: center; font-weight: 600; font-size: 14px; color: #fff; background: var(--teal-ink); border-radius: 10px; }

.dash { background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; font-size: 13px; border: 1px solid #2b3036; }
.d-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); color: var(--muted); font-weight: 500; }
.d-logo { font-weight: 800; font-size: 18px; letter-spacing: -0.045em; color: var(--ink); }
.d-logo i { font-style: normal; color: var(--teal); }
.d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.d-kpis div { padding: 14px 18px; }
.d-kpis div + div { border-left: 1px solid var(--rule); }
.d-kpis span { display: block; color: var(--muted); font-size: 12px; }
.d-kpis b { display: block; margin-top: 2px; white-space: nowrap; font-size: 22px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.d-body { display: grid; grid-template-columns: 1fr 1fr; }
.d-panel { padding: 16px 18px 18px; }
.d-panel + .d-panel { border-left: 1px solid var(--rule); }
.d-panel h4 { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.bars { display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: 108px 1fr 34px; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.bars span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars i { display: block; height: 8px; width: calc(var(--w) * 2.4); background: var(--teal-ink); border-radius: 2px; }
.bars b { font-weight: 600; text-align: right; }
.cells { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.cells i { aspect-ratio: 1; border-radius: 2px; background: #d9d6ce; }
.cells i.c1 { background: var(--teal-ink); }
.cells i.c2 { background: #9fcfd4; }
.cells i.c3 { background: #e7c9a5; }
.key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 10px; height: 10px; border-radius: 2px; }
.k1 { background: var(--teal-ink); } .k2 { background: #9fcfd4; } .k3 { background: #e7c9a5; }

/* approach */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.lane h3 { font-size: 28px; letter-spacing: -0.03em; font-weight: 700; }
.lane h3 span { display: block; margin-top: 6px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.steps { margin-top: 24px; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.steps b { font-weight: 600; }
.steps span { font-size: 14px; color: var(--muted); text-align: right; }

/* commitments */
.vows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 56px; }
.vows li { padding: 24px 0 28px; border-top: 1px solid var(--rule); }
.vows h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.vows p { margin-top: 8px; color: var(--ink-2); max-width: 42ch; }

/* contact */
.sec-contact { background: var(--white); margin-top: var(--sec-y); padding-bottom: var(--sec-y); border-top: 1px solid var(--rule); }
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 48px 64px; }
.contact-title { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.contact-info p { margin-top: 20px; color: var(--ink-2); max-width: 40ch; }
.contact-dl { margin-top: 36px; border-top: 1px solid var(--rule); }
.contact-info { min-width: 0; }
.contact-dl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact-dl dt { font-size: 14px; color: var(--muted); }
.contact-dl dd { min-width: 0; overflow-wrap: break-word; }
.contact-dl a { color: var(--teal-ink); text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; align-content: start; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-w { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231a1d21' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgb(35 112 122 / .18);
}
.field [aria-invalid='true'] { border-color: var(--danger); }
.err { min-height: 0; font-size: 13px; color: var(--danger); }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.status { font-size: 15px; color: var(--ink-2); }
.status.ok { color: var(--teal-ink); font-weight: 600; }
.status.bad { color: var(--danger); }
.form.sent .field, .form.sent .form-foot .btn { display: none; }
.form.sent .status {
  padding: 24px; border: 1px solid var(--teal-ink); background: var(--teal-soft); border-radius: var(--radius);
  font-size: 17px; font-weight: 500; color: var(--ink);
}

/* footer */
.site-foot { background: var(--ink); color: #a9afb5; font-size: 14px; }
.foot-row { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 32px 48px; padding-top: 56px; padding-bottom: 40px; }
.logo-foot { color: #fff; font-size: 30px; }
.foot-row p { margin-top: 14px; line-height: 1.6; }
.foot-mail { overflow-wrap: break-word; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot nav a { color: #e8e8e4; text-decoration: none; }
.site-foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.copy { margin: 0; }

/* ---------- motion: one quiet fade-up, only when JS is on and motion is OK ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav .nav-login { padding-left: 20px; }
}

@media (max-width: 960px) {
  .menu { display: inline-block; }
  .head-row { gap: 12px; }
  .head-actions { margin-left: auto; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--rule); }
  .nav .nav-login { padding-left: 0; border-left: 0; color: var(--teal-ink); font-weight: 600; }

  .grid { grid-template-columns: 1fr; gap: 0; }
  .sec-body { border-top: 0; padding-top: 28px; }
  .hero-foot { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shot-phone { order: 2; }
  .contact { grid-template-columns: 1fr; }
  .br-lg { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div, .facts div + div { padding: 20px 16px 20px 0; border-left: 0; }
  .facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .cols { grid-template-columns: 1fr; margin-top: 32px; }
  .trio { grid-template-columns: 1fr; }
  .trio li, .trio li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .svc { grid-template-columns: 36px 1fr; gap: 6px 12px; padding: 24px 0; }
  .svc-n { padding-top: 4px; }
  .svc p { grid-column: 2; }
  .lanes { grid-template-columns: 1fr; }
  .vows { grid-template-columns: 1fr; }
  .d-body { grid-template-columns: 1fr; }
  .d-panel + .d-panel { border-left: 0; border-top: 1px solid var(--rule); }
  .d-kpis b { font-size: 18px; }
  .d-kpis div { padding: 12px; }
  .form { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr; align-items: start; }
  .head-actions .btn-sm { display: none; }
}

@media (max-width: 480px) {
  .contact-dl div { grid-template-columns: 1fr; gap: 4px; }
  .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
}

@media (max-width: 400px) {
  .steps li { grid-template-columns: 32px 1fr; }
  .steps span { grid-column: 2; text-align: left; }
  .d-head span:last-child { display: none; }
}

@media print {
  .site-head, .menu, .form, .skip { display: none !important; }
  .sec-ink, .site-foot { background: none; color: var(--ink); }
}
