/* HansPM — Security & Compliance
   Palette: charcoal base, off-white text, single warm-yellow accent. */

/* Inter — self-hosted variable font (latin subset). No third-party requests. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #262628;
  --bg-alt:    #1e1e20;
  --bg-deep:   #171718;
  --line:      #37373a;
  --text:      #f2f0ed;
  --muted:     #a5a3a0;
  --accent:    #ffc30b;
  --accent-ink:#231d05;

  --wrap: 1120px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.measure { max-width: 760px; }
.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(38, 38, 40, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__brand { display: flex; align-items: center; text-decoration: none; }
.nav__brand img { height: 30px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a {
  text-decoration: none; color: var(--muted);
  font-size: .95rem; font-weight: 500;
  transition: color .15s ease;
}
.nav__menu a:hover { color: var(--text); }
.nav__menu .btn { color: var(--accent-ink); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 10px; margin-right: -10px;
}
.nav__toggle span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; margin: 4px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  padding: 14px 24px; border-radius: 6px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ffd14a; }
.btn--outline { border-color: var(--line); color: var(--text); }
.btn--outline:hover { border-color: var(--muted); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}
.h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.18; letter-spacing: -.02em;
  font-weight: 700; margin: 0 0 44px;
}
.h2--lg { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 20px; }
.accent { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); }
.hero__title {
  font-size: clamp(2.5rem, 6.6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -.035em;
  font-weight: 700; margin: 0 0 28px; max-width: 15ch;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted); max-width: 62ch; margin: 0 0 40px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--line); background: var(--bg-alt); }
.trustbar__inner {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  padding-block: 22px; align-items: center;
}
.trustbar__item {
  font-family: var(--mono);
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  position: relative; padding-left: 16px;
}
.trustbar__item::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding-block: clamp(56px, 7vw, 84px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5; color: var(--text); margin: 0;
  letter-spacing: -.01em;
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px 30px;
  transition: border-color .18s ease;
}
.section--alt .card { background: var(--bg); }
.card:hover { border-color: #4a4a4e; }
.card__num {
  font-family: var(--mono); font-size: .74rem;
  color: var(--accent); margin: 0 0 18px; letter-spacing: .08em;
}
.card__title { font-size: 1.06rem; font-weight: 600; line-height: 1.35; margin: 0 0 12px; }
.card__body { font-size: .95rem; color: var(--muted); margin: 0; }

.point__title {
  font-size: 1.14rem; font-weight: 600; margin: 0 0 10px;
  padding-top: 16px; border-top: 2px solid var(--accent);
  display: inline-block;
}
.approach .point { border-top: 0; }
.point__body { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Track record ---------- */
.record { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.record__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.record__client { font-weight: 600; font-size: 1.05rem; }
.record__work {
  font-family: var(--mono); font-size: .8rem;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); text-align: right; flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-deep); border-top: 1px solid var(--line); }
.contact__sub { color: var(--muted); font-size: 1.08rem; margin: 0 auto 36px; max-width: 52ch; }
.contact__note { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 28px 0 0; }

/* ---------- Contact form ---------- */
.form { margin: 8px 0 0; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 13px 14px; width: 100%;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--bg); color: var(--text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4a4a4e; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 195, 11, .16);
}
.field [aria-invalid="true"] { border-color: #ff7a6b; }
.field .field__error { font-size: .84rem; color: #ff9d92; margin: 7px 0 0; }

.turnstile { margin: 0 0 20px; min-height: 1px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form__actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.form__actions .btn[disabled] { opacity: .55; cursor: default; }
.form__status { margin: 0; font-size: .94rem; color: var(--muted); }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: #ff9d92; }

.form--sent { text-align: center; padding: 28px 0 8px; }
.form--sent h3 { font-size: 1.3rem; margin: 0 0 10px; }
.form--sent p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  justify-content: space-between; align-items: center;
}
.footer__logo { height: 66px; width: auto; opacity: .5; flex-shrink: 0; }
.footer__text { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; }
.footer p { margin: 0; font-size: .88rem; color: var(--muted); }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer__links span { margin: 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; text-align: center; border-bottom: 0; padding: 14px 18px; }
}

@media (max-width: 620px) {
  .footer__logo { height: 56px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__actions { flex-direction: column; align-items: stretch; }
  .form__actions .btn { width: 100%; }
  .form__status { text-align: center; }
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .grid--2 { gap: 32px; }
  .hero__cta .btn { flex: 1 1 auto; text-align: center; }
  .record__row { flex-direction: column; gap: 6px; }
  .record__work { text-align: left; }
  .footer__inner { justify-content: flex-start; }
}
