/* =========================================================================
   Vertix Solutions — Marketing site styles
   Builds on /assets/vx-tokens.css. Hand-coded, no framework.
   ========================================================================= */

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

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

body {
  margin: 0;
  background-color: var(--vx-off-white);
  /* Subtle paper-tooth texture (~3% opacity, monochrome).
     Inline SVG keeps it as one cached request and < 1KB. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.17  0 0 0 0 0.17  0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 200px 200px;
  color: var(--vx-deep-gray);
  font-family: var(--vx-font-body);
  font-size: 17px;
  line-height: 1.65;
}

p { max-width: 68ch; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vx-forest);
  color: var(--vx-cream);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-family: var(--vx-font-heading);
  font-weight: 600;
  text-decoration: none;
  border: 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 720px; }
.container--mid    { max-width: 880px; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--vx-ease-standard),
              background-color 240ms var(--vx-ease-standard);
}
.site-header.is-scrolled {
  border-bottom-color: var(--vx-warm-gray);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--vx-font-heading);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--vx-deep-gray);
  border: 0;
  text-decoration: none;
}
.wordmark__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  position: relative;
  top: 4px;
}
.wordmark__mark svg { width: 100%; height: 100%; display: block; }
.wordmark__solutions {
  font-weight: 400;
  color: var(--vx-graphite);
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-family: var(--vx-font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--vx-graphite);
  border: 0;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 160ms var(--vx-ease-standard);
}
.site-nav a:hover { color: var(--vx-forest); }
.site-nav a[aria-current="page"] {
  color: var(--vx-forest);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--vx-forest);
}

/* mobile menu */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--vx-warm-gray-2);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--vx-font-heading);
  font-weight: 500;
  font-size: 14px;
  color: var(--vx-graphite);
  cursor: pointer;
}
@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--vx-off-white);
    border-bottom: 1px solid var(--vx-warm-gray);
    padding: 8px 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 32px; font-size: 16px; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section--cream { background: var(--vx-cream); }
.section--forest {
  background: var(--vx-forest);
  color: var(--vx-cream);
}

/* ---------- Hero (Home) ---------- */
.hero {
  padding-top: clamp(96px, 14vw, 168px);
  padding-bottom: clamp(72px, 10vw, 128px);
}
.hero__eyebrow {
  font-family: var(--vx-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vx-terracotta-deep);
  margin: 0 0 28px;
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--vx-terracotta-deep);
  margin-right: 14px;
  vertical-align: 4px;
}
.hero__headline {
  font-family: var(--vx-font-heading);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--vx-forest);
  margin: 0 0 32px;
  max-width: 18ch;
  text-wrap: balance;
}
.hero__headline em {
  font-family: var(--vx-font-heading);
  font-style: italic;
  font-weight: 500;
  color: var(--vx-deep-gray);
}
.hero__sub {
  font-family: var(--vx-font-body);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--vx-graphite);
  max-width: 56ch;
  margin: 0 0 48px;
}
.hero__invite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--vx-font-heading);
  font-weight: 500;
  font-size: 16px;
  color: var(--vx-rust);
  border: 0;
  border-bottom: 1px solid var(--vx-rust);
  padding-bottom: 4px;
  text-decoration: none;
  transition: color 160ms var(--vx-ease-standard),
              gap 200ms var(--vx-ease-standard);
}
.hero__invite:hover { color: var(--vx-rust-deep); gap: 14px; border-bottom-color: var(--vx-rust-deep); }
.hero__invite-arrow {
  display: inline-block;
  transition: transform 200ms var(--vx-ease-standard);
}
.hero__invite:hover .hero__invite-arrow { transform: translateX(2px); }

/* ---------- Belief block (founding belief) ---------- */
.belief {
  background: var(--vx-cream);
  position: relative;
  overflow: hidden;
}
.belief__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.belief__glyph {
  font-family: 'Lora', 'Georgia', serif;
  font-size: clamp(140px, 18vw, 220px);
  line-height: 0.8;
  color: var(--vx-terracotta);
  position: absolute;
  top: -28px;
  left: -8px;
  user-select: none;
  pointer-events: none;
  font-weight: 400;
}
.belief__lead {
  font-family: var(--vx-font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  color: var(--vx-forest);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 56px;
}
.belief__body {
  font-family: var(--vx-font-body);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--vx-deep-gray);
  margin: 0 0 20px;
  max-width: none;
}
.belief__body:last-child { margin-bottom: 0; }
.belief__attr {
  display: block;
  margin-top: 36px;
  font-family: var(--vx-font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vx-terracotta-deep);
}

/* ---------- Section headers ---------- */
.section-eyebrow {
  font-family: var(--vx-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vx-terracotta-deep);
  margin: 0 0 20px;
}
.section-title {
  font-family: var(--vx-font-heading);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--vx-forest);
  margin: 0 0 32px;
  max-width: 22ch;
}

/* ---------- Definition section (What a digital team is) ---------- */
.definition__body {
  font-family: var(--vx-font-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--vx-deep-gray);
  max-width: 64ch;
}
.definition__body p { max-width: none; margin: 0 0 1.2em; }
.definition__body p:last-child { margin-bottom: 0; }
.definition__layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 800px) {
  .definition__layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Principles (3-card strip) ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--vx-off-white);
  border: 1px solid var(--vx-warm-gray);
  border-radius: 12px;
  padding: 36px 32px 32px;
  position: relative;
  transition: border-color 240ms var(--vx-ease-standard),
              transform 240ms var(--vx-ease-standard);
}
.principle::before {
  content: "";
  position: absolute;
  top: 0; left: 32px;
  width: 40px;
  height: 2px;
  background: var(--vx-forest);
}
.principle:hover { border-color: var(--vx-warm-gray-2); transform: translateY(-2px); }
.principle__num {
  font-family: var(--vx-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--vx-stone);
  margin: 0 0 16px;
}
.principle__title {
  font-family: var(--vx-font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--vx-forest);
  margin: 0 0 14px;
}
.principle__body {
  font-family: var(--vx-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--vx-graphite);
  margin: 0;
  max-width: none;
}

/* ---------- CTA strip ---------- */
.invitation { text-align: left; }
.invitation__line {
  font-family: var(--vx-font-heading);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--vx-forest);
  margin: 0 0 32px;
  max-width: 28ch;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--vx-font-heading);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--vx-rust);
  color: #fff;
  border: 1px solid var(--vx-rust);
  text-decoration: none;
  transition: background 160ms var(--vx-ease-standard),
              border-color 160ms var(--vx-ease-standard),
              transform 80ms var(--vx-ease-standard);
}
.btn:hover { background: var(--vx-rust-deep); border-color: var(--vx-rust-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn__arrow { transition: transform 200ms var(--vx-ease-standard); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--vx-forest);
  border-color: var(--vx-warm-gray-2);
}
.btn--ghost:hover {
  background: var(--vx-cream);
  color: var(--vx-forest-deep);
  border-color: var(--vx-forest);
}

/* ---------- Page-opener (About / Approach / Contact) ---------- */
.page-opener {
  padding: clamp(96px, 14vw, 160px) 0 clamp(48px, 6vw, 80px);
}
.page-opener__eyebrow {
  font-family: var(--vx-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vx-terracotta-deep);
  margin: 0 0 24px;
}
.page-opener__line {
  font-family: var(--vx-font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--vx-forest);
  margin: 0;
  max-width: 22ch;
}

/* ---------- Long-form prose (About) ---------- */
.prose {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--vx-font-body);
  font-size: 18px;
  line-height: 1.78;
  color: var(--vx-deep-gray);
}
.prose p { margin: 0 0 1.4em; max-width: none; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-family: var(--vx-font-heading); font-style: italic; font-weight: 400; }
.prose strong { font-weight: 700; color: var(--vx-deep-gray); }

.prose .has-dropcap::first-letter {
  font-family: var(--vx-font-heading);
  font-weight: 600;
  color: var(--vx-forest);
  font-size: 4.4em;
  line-height: 0.86;
  float: left;
  padding: 6px 14px 0 0;
  letter-spacing: -0.02em;
}

.signoff {
  margin-top: 56px;
  font-family: var(--vx-font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--vx-graphite);
}
.signoff strong { font-weight: 600; font-style: normal; color: var(--vx-deep-gray); }

.contact-line {
  margin-top: 24px;
  font-family: var(--vx-font-body);
  font-size: 17px;
  color: var(--vx-graphite);
}
.contact-line a {
  color: var(--vx-rust);
  border-bottom-color: var(--vx-rust-soft);
}
.contact-line a:hover { color: var(--vx-rust-deep); border-bottom-color: var(--vx-rust-deep); }

/* ---------- Approach numbered steps ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--vx-warm-gray);
}
.step:last-child { border-bottom: 1px solid var(--vx-warm-gray); }
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; }
}
.step__num {
  font-family: var(--vx-font-heading);
  font-weight: 500;
  font-size: clamp(64px, 8vw, 96px);
  line-height: 0.9;
  color: var(--vx-terracotta);
  letter-spacing: -0.04em;
  font-feature-settings: "lnum";
}
.step__body { padding-top: 8px; }
.step__title {
  font-family: var(--vx-font-heading);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  color: var(--vx-forest);
  margin: 0 0 16px;
}
.step__lead {
  font-family: var(--vx-font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--vx-deep-gray);
  margin: 0 0 14px;
  max-width: 56ch;
}
.step__counter {
  font-family: var(--vx-font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--vx-stone);
  margin: 0;
  max-width: 56ch;
}

/* ---------- Plain definition (Approach 'in plain terms') ---------- */
.plain-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain-list__item {
  border-top: 1px solid var(--vx-warm-gray);
  padding-top: 28px;
}
.plain-list__label {
  font-family: var(--vx-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vx-terracotta-deep);
  margin: 0 0 12px;
}
.plain-list__body {
  font-family: var(--vx-font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--vx-deep-gray);
  margin: 0;
  max-width: 64ch;
}

/* ---------- Stage / scope candid block ---------- */
.candid {
  background: var(--vx-cream);
  border-left: 0;
  border-radius: 0;
  padding: 0;
}
.candid__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.candid__label {
  font-family: var(--vx-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vx-terracotta-deep);
  margin: 0 0 18px;
}
.candid__body {
  font-family: var(--vx-font-body);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--vx-deep-gray);
  margin: 0;
  max-width: none;
}
.candid__body em { font-family: var(--vx-font-heading); font-style: italic; }

/* ---------- Contact mailto centerpiece ---------- */
.mailto {
  display: inline-block;
  font-family: var(--vx-font-heading);
  font-weight: 500;
  font-size: clamp(28px, 4.8vw, 56px);
  letter-spacing: -0.02em;
  color: var(--vx-forest);
  border: 0;
  border-bottom: 2px solid var(--vx-warm-gray-2);
  padding-bottom: 8px;
  text-decoration: none;
  transition: color 200ms var(--vx-ease-standard),
              border-color 200ms var(--vx-ease-standard);
}
.mailto:hover {
  color: var(--vx-rust);
  border-bottom-color: var(--vx-rust);
}

.contact-meta {
  font-family: var(--vx-font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--vx-graphite);
  max-width: 56ch;
}
.contact-meta + .contact-meta { margin-top: 28px; }

.trust-footer-line {
  font-family: var(--vx-font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--vx-forest);
  margin: 64px 0 0;
  max-width: 36ch;
  line-height: 1.4;
}

/* ---------- Site footer (always forest) ---------- */
.site-footer {
  background: var(--vx-forest);
  color: var(--vx-cream);
  padding: clamp(64px, 8vw, 96px) 0 36px;
}
.site-footer a {
  color: var(--vx-cream);
  border-bottom: 1px solid color-mix(in srgb, var(--vx-cream) 35%, transparent);
}
.site-footer a:hover { color: #fff; border-bottom-color: var(--vx-terracotta); }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid color-mix(in srgb, var(--vx-cream) 18%, transparent);
}
@media (max-width: 720px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}
.site-footer__lockup {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--vx-font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--vx-cream);
  border: 0;
  text-decoration: none;
}
.site-footer__wordmark .wordmark__solutions { color: color-mix(in srgb, var(--vx-cream) 70%, transparent); font-weight: 400; }
.site-footer__tagline {
  font-family: var(--vx-font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: color-mix(in srgb, var(--vx-cream) 78%, transparent);
  margin: 0;
  max-width: 36ch;
}
.site-footer__email {
  font-family: var(--vx-font-heading);
  font-weight: 500;
  font-size: 20px;
  color: var(--vx-cream);
  border-bottom: 1px solid color-mix(in srgb, var(--vx-cream) 40%, transparent);
  text-decoration: none;
}
.site-footer__email:hover { color: #fff; border-bottom-color: var(--vx-terracotta); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 28px;
  font-family: var(--vx-font-body);
  font-size: 14px;
  color: color-mix(in srgb, var(--vx-cream) 65%, transparent);
}
@media (max-width: 720px) {
  .site-footer__bottom { flex-direction: column; gap: 12px; }
}
.site-footer__privacy {
  max-width: 56ch;
  margin: 0;
  line-height: 1.55;
}
.site-footer__copyright { margin: 0; white-space: nowrap; }

/* ---------- Reveal-on-scroll (gated by prefers-reduced-motion in JS) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--vx-ease-standard),
              transform 600ms var(--vx-ease-standard);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Focus ring ---------- */
:focus-visible {
  outline: 2px solid var(--vx-forest);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-footer :focus-visible { outline-color: var(--vx-terracotta); }

/* ---------- Decorative hairline divider ---------- */
.hairline {
  border: 0;
  border-top: 1px solid var(--vx-warm-gray);
  margin: 0;
}

/* ---------- Page nav across pages ---------- */
.page-jump {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 64px 0;
  border-top: 1px solid var(--vx-warm-gray);
  font-family: var(--vx-font-heading);
  font-weight: 500;
}
.page-jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--vx-graphite);
  border: 0;
  text-decoration: none;
  font-size: 16px;
  transition: color 160ms var(--vx-ease-standard);
}
.page-jump a small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vx-stone);
  margin-bottom: 4px;
}
.page-jump a:hover { color: var(--vx-forest); }
.page-jump a:hover small { color: var(--vx-terracotta-deep); }
.page-jump__next { text-align: right; }
@media (max-width: 600px) {
  .page-jump { flex-direction: column; gap: 24px; }
  .page-jump__next { text-align: left; }
}
