/* Paxvion v2 — monochrome editorial rebuild */

:root {
  --black: #000000;
  --ink: #0B0B0C;
  --grey: #E2E5E9;
  --grey-2: #E8EAED;
  --silver: #C4C7CC;
  --silver-dark: #8A8F98;
  --text-dark: #1C1C1E;
  --muted-dark: #6B6F76;
  --ease: cubic-bezier(0.22,1,0.36,1);
  --container: 1120px;

  --grey-body: rgba(226,229,233,.65);
  --grey-label: rgba(226,229,233,.40);
  --hairline: rgba(226,229,233,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

::selection { background: var(--grey); color: var(--black); }
.our-approach ::selection, .site-footer ::selection { background: var(--text-dark); color: var(--grey); }

body {
  background: var(--black);
  color: var(--grey);
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, button { color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- fixed starfield ---------- */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.page {
  position: relative;
  z-index: 1;
}

/* ---------- focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 400ms var(--ease), border-color 400ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0,0,0,.85);
  border-bottom-color: var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.wordmark { display: inline-flex; align-items: center; color: var(--grey); flex: 0 0 auto; }
.wordmark-img { width: 108px; height: auto; color: var(--grey); }

.site-nav { flex: 1 1 auto; display: flex; justify-content: center; }

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(226,229,233,.45);
  padding-bottom: 8px;
  transition: color 300ms var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--grey);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms var(--ease), opacity 350ms var(--ease);
}

.nav-links a:hover { color: var(--grey); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--grey); }
.nav-links a.is-active::after { transform: scaleX(1); opacity: .45; }
.nav-links a.is-active:hover::after { opacity: 1; }

/* header CTA appears once the hero CTA has scrolled away (desktop only) */
@media (min-width: 761px) {
  .header-cta {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 350ms var(--ease), transform 350ms var(--ease),
                background 350ms var(--ease), color 350ms var(--ease), border-color 350ms var(--ease);
  }
  .site-header.is-scrolled .header-cta { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(226,229,233,.28);
  background: transparent;
  color: var(--grey);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background 350ms var(--ease), color 350ms var(--ease), border-color 350ms var(--ease);
  flex: 0 0 auto;
  white-space: nowrap;
}

.btn .btn-arrow {
  display: inline-block;
  transition: transform 350ms var(--ease);
}

.btn:hover {
  background: var(--grey);
  color: var(--black);
  border-color: var(--grey);
}

.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-sm { padding: 8px 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: transparent;
  padding-top: 76px;
}

.hero-inner {
  max-width: 920px;
}

.hero-eyebrow-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.eyebrow-hairline {
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(226,229,233,.4);
}

.eyebrow-label {
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(226,229,233,.55);
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--grey);
  margin: 0 0 28px;
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 20px);
  color: var(--grey-body);
  max-width: 540px;
  margin: 0 0 40px;
}

.hero-cta { margin: 0; }

.hero-scroll {
  position: absolute;
  left: max(24px, calc((100% - var(--container)) / 2 + 24px));
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(226,229,233,.4);
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(226,229,233,.3);
}

/* hero load-in animation */
.hero-anim {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 800ms var(--ease) forwards;
}
.hero-anim-1 { animation-delay: 0ms; }
.hero-anim-2 { animation-delay: 120ms; }
.hero-anim-3 { animation-delay: 240ms; }
.hero-anim-4 { animation-delay: 360ms; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- section head pattern ---------- */
.section-head-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(226,229,233,.4);
  white-space: nowrap;
  flex: 0 0 auto;
}

.section-hairline {
  display: block;
  height: 1px;
  flex: 1 1 auto;
  background: rgba(226,229,233,.18);
}

.section-title {
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.05;
  color: var(--grey);
  margin-top: 32px;
}

.section-intro {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: rgba(226,229,233,.7);
  max-width: 640px;
  margin-top: 24px;
}

/* light-panel variants of the section head */
.our-approach .section-label { color: var(--muted-dark); }
.our-approach .section-hairline { background: var(--silver); }
.our-approach .section-title { color: var(--text-dark); }

/* ---------- what we do ---------- */
.what-we-do {
  position: relative;
  background: transparent;
  padding: 128px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}

.card {
  position: relative;
  border: 1px solid rgba(226,229,233,.16);
  border-radius: 8px;
  background: transparent;
  padding: 30px 32px 32px;
  transition: border-color 400ms var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--grey);
  opacity: .5;
  transition: opacity 400ms var(--ease);
}

.card:hover { border-color: rgba(226,229,233,.34); }
.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 22px;
  color: var(--grey);
  margin-bottom: 14px;
}

.card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(226,229,233,.62);
}

/* ---------- our approach (light panel) ---------- */
.our-approach {
  position: relative;
  background: var(--grey);
  padding: 128px 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-top: 32px;
}
.approach-grid .section-title { margin-top: 0; }
.approach-body { padding-top: 12px; }

.approach-lead {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  color: var(--text-dark);
  margin-top: 20px;
}

.approach-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.approach-body p.approach-muted {
  color: var(--muted-dark);
  margin-bottom: 0;
}

/* ---------- let's talk ---------- */
.lets-talk {
  position: relative;
  background: transparent;
  padding: 128px 0;
}

.talk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
}

.talk-intro p {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--grey-body);
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(226,229,233,.45);
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(226,229,233,.25);
  color: var(--grey);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  padding: 14px 0;
  border-radius: 0;
  transition: border-color 300ms var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: none;
}

/* keep autofilled fields on the dark palette */
.field input:-webkit-autofill,
.field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--black) inset;
  -webkit-text-fill-color: var(--grey);
  caret-color: var(--grey);
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--grey);
  outline: none;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* honeypot field: off-screen, real visitors never see or fill it */
.contact-form { position: relative; }
.contact-form .hp {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* message shown after sending */
.form-status {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey-body);
}
.form-status.is-error { color: var(--silver); }
.contact-form.is-sent .field,
.contact-form.is-sent .btn { display: none; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--grey);
  padding: 72px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo { width: 140px; height: auto; color: var(--text-dark); }

.footer-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.footer-hairline {
  flex: 1 1 auto;
  height: 1px;
  background: var(--silver);
  min-width: 40px;
}

.footer-copyright {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-dark);
  white-space: nowrap;
}

/* legal note (international edition) */
.footer-legal {
  margin-top: 40px;
}

.footer-legal-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 10px;
}

.footer-legal-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-dark);
  max-width: 640px;
}

/* ---------- scroll progress ring ---------- */
.scroll-progress {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
  cursor: pointer;
  border-radius: 50%;
  background: rgba(11,11,12,.82);
}

.scroll-progress.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-progress svg { transform: rotate(-90deg); }

.progress-track,
.progress-bar {
  fill: none;
  stroke-width: 2;
}

.progress-track { stroke: rgba(226,229,233,.15); }

.progress-bar {
  stroke: var(--silver);
  stroke-dasharray: 119.4;
  stroke-dashoffset: 119.4;
  transition: stroke-dashoffset 100ms linear;
}

.progress-arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: var(--grey);
  font-family: 'DM Mono', monospace;
}

/* ---------- scroll reveals ---------- */
html.js .sr {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

html.js .sr.in {
  opacity: 1;
  transform: translateY(0);
}

html.js .card-grid .card.sr:nth-child(1) { transition-delay: 0ms; }
html.js .card-grid .card.sr:nth-child(2) { transition-delay: 80ms; }
html.js .card-grid .card.sr:nth-child(3) { transition-delay: 160ms; }
html.js .card-grid .card.sr:nth-child(4) { transition-delay: 240ms; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .sr {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-anim {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .btn .btn-arrow,
  .nav-links a::after,
  .site-header,
  .progress-bar,
  .scroll-progress {
    transition: none !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 800px) {
  .approach-grid { grid-template-columns: 1fr; gap: 32px; }
  .talk-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; height: 68px; }
  .hero { padding-top: 68px; }
  .hero-scroll { display: none; }
  html { scroll-padding-top: 68px; }
}

@media (max-width: 700px) {
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .what-we-do,
  .our-approach,
  .lets-talk { padding: 88px 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-hairline { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-headline { margin-bottom: 22px; }
}
