/* ===================== TOKENS ===================== */
:root {
  --ink:    #0e0f11;   /* near-black */
  --ink-2:  #3a3d42;
  --muted:  #8a8f98;
  --line:   #e8e8e6;
  --line-2: #dfdfdc;
  --paper:  #ffffff;
  --paper-2:#f6f6f4;   /* warm off-white for alt sections */
  --accent: #2547ff;   /* single restrained accent */

  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --f-display: "Manrope", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
}

/* ===================== RESET ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }

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

/* ===================== TYPOGRAPHY HELPERS ===================== */
.label {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--f-display);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
}
.label__no { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.lead { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.025em; margin-bottom: 28px; max-width: 16ch; }
.lead--aside { margin-top: 18px; margin-bottom: 0; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px;
  font-family: var(--f-display); font-weight: 500; font-size: .92rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--wide { width: 100%; margin-top: 8px; }

.cta-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-display); font-weight: 500; font-size: .9rem;
  color: var(--ink);
}
.cta-link span { transition: transform .3s var(--ease); }
.cta-link:hover { color: var(--accent); }
.cta-link:hover span { transform: translateX(4px); }

/* ===================== HEADER ===================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.header.scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: inline-flex; align-items: center; }
.header__inner .logo { margin-left: -16px; }
.logo__img { height: 42px; width: auto; display: block; }
.logo__img--footer { height: 46px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative;
  font-size: .92rem; font-weight: 450; color: var(--ink-2);
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--ink); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin-left: auto; transition: transform .3s var(--ease), opacity .3s var(--ease), width .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ===================== HERO (centered) ===================== */
.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}

/* abstract centered backdrop: soft glow + faint concentric rings, edge-faded */
.hero__bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 42%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 78% at 50% 42%, #000 30%, transparent 78%);
}
.hero__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -56%);
  width: min(840px, 120vw); height: min(840px, 120vw); border-radius: 50%;
  filter: blur(30px);
  background: radial-gradient(circle, rgba(37,71,255,.12), transparent 60%);
}
.hero__rings {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%);
  width: min(1180px, 160vw); height: auto;
}
.hero__rings circle { stroke: rgba(37,71,255,.08); stroke-width: 1; }
.hero__rings circle:nth-child(even) { stroke: rgba(14,15,17,.045); }

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(48px, 9vw, 120px) 0;
}

.hero__title {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
  margin: 22px 0 0;
  max-width: 20ch;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--ink-2);
  max-width: 54ch;
  margin: 24px auto 0;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.hero__meta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
  padding: clamp(18px, 2.6vw, 30px) 0 clamp(20px, 2.8vw, 34px);
  border-top: 1px solid var(--line);
}
.metric { border-left: 1px solid var(--line); padding-left: 24px; }
.metric:first-child { border-left: none; padding-left: 0; }
.metric__num { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
.metric__label { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* ===================== SECTION LAYOUT ===================== */
.section { padding: clamp(72px, 11vw, 130px) 0; }
.section--alt { background: var(--paper-2); }

.split { display: grid; grid-template-columns: 300px 1fr; gap: 64px; }
.split__aside { position: sticky; top: 100px; align-self: start; }
.split__main > p { color: var(--ink-2); max-width: 62ch; margin-bottom: 20px; font-size: 1.05rem; }
.split__main > p:last-child { margin-bottom: 0; }

/* ===================== SERVICES (rows) ===================== */
.rows { border-top: 1px solid var(--line-2); }
.row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: start; gap: 28px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line-2);
  transition: padding-left .35s var(--ease), background .35s var(--ease);
}
.row__no { font-family: var(--f-display); font-size: .8rem; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
.row__body h3 { font-size: 1.4rem; font-weight: 500; }
.row__body p { color: var(--ink-2); margin-top: 8px; max-width: 54ch; }
.row__arrow { font-size: 1.2rem; color: var(--muted); opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), color .35s var(--ease); padding-top: 4px; }
.row:hover { padding-left: 18px; }
.row:hover .row__arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
.row:hover .row__no { color: var(--accent); }

/* ===================== INDUSTRIES (tags) ===================== */
.tags { display: flex; flex-wrap: wrap; gap: 10px 10px; }
.tags li {
  font-family: var(--f-display); font-weight: 450; font-size: 1rem;
  color: var(--ink);
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.tags li:hover { border-color: var(--ink); transform: translateY(-3px); }

/* ===================== WHY (feature grid) ===================== */
.feat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.feat {
  padding: 32px 30px 36px;
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  transition: background .3s var(--ease);
}
.feat h3 { font-size: 1.18rem; font-weight: 500; margin-bottom: 10px; }
.feat h3::before { content: ""; display: block; width: 22px; height: 2px; background: var(--accent); margin-bottom: 16px; }
.feat p { color: var(--ink-2); font-size: .98rem; }
.feat:hover { background: var(--paper); }
.section--alt .feat:hover { background: #fff; }

/* ===================== VISION & MISSION ===================== */
.vm__item { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.statement {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  line-height: 1.3; letter-spacing: -.02em;
  color: var(--ink); max-width: 26ch;
}
.rule { border: none; border-top: 1px solid var(--line); margin: clamp(40px, 6vw, 72px) 0; }

/* ===================== CONTACT ===================== */
.contact__intro { color: var(--ink-2); margin-top: 18px; max-width: 38ch; }
.contact__list { margin-top: 34px; display: grid; gap: 16px; }
.contact__list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: .96rem; align-items: baseline; }
.contact__list span { font-family: var(--f-display); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.form { display: grid; gap: 26px; max-width: 540px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field label { font-family: var(--f-display); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: transparent;
  border: none; border-bottom: 1px solid var(--line-2);
  padding: 8px 0 10px;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 64px; }
.field input.invalid, .field textarea.invalid { border-bottom-color: #d23030; }
.section--alt .field input, .section--alt .field textarea { border-bottom-color: var(--line-2); }
.form__note { font-size: .9rem; min-height: 1em; margin-top: -6px; }
.form__note.success { color: #1c8a4a; }
.form__note.error { color: #d23030; }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: #b9bcc2; padding-top: clamp(64px, 9vw, 100px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 56px; padding-bottom: 64px; }
.footer__brand .logo { color: #fff; }
.footer__brand p { margin-top: 18px; color: #8b9098; max-width: 36ch; font-size: .95rem; }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__nav h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; margin-bottom: 18px; }
.footer__nav a, .footer__nav span { display: block; color: #8b9098; font-size: .94rem; margin-bottom: 11px; transition: color .25s var(--ease); }
.footer__nav a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,.1);
}
.footer__bottom p { font-size: .86rem; color: #71757c; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__aside { position: static; }
  .vm__item { grid-template-columns: 1fr; gap: 22px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .header__cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px;
    transform: translateY(-130%); transition: transform .4s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav__link { width: 100%; padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .metric { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 4px; }
  .metric:nth-child(3) { border-left: none; padding-left: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-top: none; padding-top: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-grid { border-left: none; }
  .feat { border-right: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 22px; }
  .logo__img { height: 34px; }
  .logo__img--footer { height: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .row { grid-template-columns: auto 1fr; }
  .row__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
