:root{
  --paper: #F7F8F6;
  --paper-alt: #EEF0EB;
  --ink: #2E4152;
  --ink-soft: #5B6B79;
  --navy-deep: #1E2C38;
  --khaki: #C9C2A0;
  --khaki-deep: #9C8B5E;
  --gray-layer: #D7D7D5;
  --line: #DEE1DA;
  --paper-on-dark: #C7CFD6;
  --radius: 14px;
  --maxw: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,h2,h3{
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

a{ color: inherit; }

.eyebrow{
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--khaki-deep);
  display: inline-block;
  margin-bottom: 14px;
}

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

/* ---------- NAV ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,248,246,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 88px;
}
.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color: var(--ink);
}
.brand-logo{
  height: 56px;
  width: auto;
  display: block;
}
.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
  list-style:none;
  margin:0; padding:0;
}
.nav-links a{
  text-decoration:none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover{ color: var(--ink); }
.nav-cta{
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration:none;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--khaki-deep); transform: translateY(-1px); }

/* ---------- HERO ---------- */
.hero{
  padding: 84px 0 96px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items:center;
}
.hero h1{
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  color: var(--ink);
}
.hero p.lede{
  margin-top: 22px;
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.65;
}
.btn-primary{
  background: var(--ink);
  color: var(--paper);
  text-decoration:none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s ease, transform .2s ease;
  display:inline-block;
}
.btn-primary:hover{ background: var(--khaki-deep); transform: translateY(-1px); }

.mark-stage{
  perspective: 1100px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 320px;
}
.mark{
  width: min(380px, 90%);
  transform-style: preserve-3d;
  transition: transform .3s ease-out;
}
.layer{ transform-origin: center; transform-box: fill-box; }
.layer-top{
  fill: var(--ink);
  animation: dropInTop .9s cubic-bezier(.2,.8,.2,1) both;
}
.layer-mid{
  fill: var(--khaki);
  animation: dropInMid .9s cubic-bezier(.2,.8,.2,1) .12s both;
}
.layer-bot{
  fill: var(--gray-layer);
  animation: dropInBot .9s cubic-bezier(.2,.8,.2,1) .24s both;
}
@keyframes dropInTop{
  from{ opacity: 0; transform: translateY(-30px) scale(.94); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dropInMid{
  from{ opacity: 0; transform: translateY(6px) scale(.94); }
  to{ opacity: 1; transform: translateY(35px) scale(1); }
}
@keyframes dropInBot{
  from{ opacity: 0; transform: translateY(42px) scale(.94); }
  to{ opacity: 1; transform: translateY(70px) scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .layer-top{ animation: none; opacity: 1; }
  .layer-mid{ animation: none; opacity: 1; transform: translateY(35px); }
  .layer-bot{ animation: none; opacity: 1; transform: translateY(70px); }
}

/* ---------- SECTIONS shared ---------- */
section{ padding: 88px 0; }
.section-line{ border-top: 1px solid var(--line); }
.head-row{
  max-width: 640px;
  margin-bottom: 52px;
}
.head-row h2{
  font-size: clamp(26px, 3vw, 36px);
}

/* ---------- SERVICES ---------- */
.service-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.service-card{
  background: var(--paper);
  padding: 34px 34px 30px;
  transition: background .25s ease;
}
.service-card:hover{ background: var(--paper-alt); }
.service-grid--two .service-card{ padding: 40px 38px 36px; }
.service-card svg{ width: 30px; height: 19px; margin-bottom: 18px; }
.service-card h3{
  font-size: 18px;
  margin-bottom: 10px;
}
.service-card p{
  margin:0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- PRODUCTS ---------- */
.product-feature{
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 44px;
}
.product-logo{
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 22px;
}
.product-info p{
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 0 26px;
}
.product-actions{
  display:flex;
  align-items:center;
  gap: 22px;
  flex-wrap: wrap;
}
.product-url{
  font-family:'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.product-url:hover{ color: var(--ink); border-color: var(--khaki-deep); }

/* ---------- CONTACT ---------- */
.contact{
  background: var(--navy-deep);
  color: var(--paper);
}
.contact .eyebrow{ color: var(--khaki); }
.contact h2{
  color: var(--paper);
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 16ch;
}
.contact p.lede{
  color: var(--paper-on-dark);
  font-size: 16.5px;
  max-width: 48ch;
  margin-top: 18px;
  line-height: 1.65;
}
.contact-row{
  margin-top: 40px;
  display:flex;
  align-items:center;
  gap: 28px;
  flex-wrap: wrap;
}
.email-link{
  font-family:'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--paper);
  text-decoration:none;
  border-bottom: 2px solid var(--khaki);
  padding-bottom: 6px;
  transition: color .2s ease, border-color .2s ease;
}
.email-link:hover{ color: var(--khaki); border-color: var(--paper); }
.contact-meta{
  display:flex;
  gap: 22px;
  margin-top: 26px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--paper-on-dark);
  font-family: 'IBM Plex Mono', monospace;
}
.contact-meta a{ color: var(--paper-on-dark); text-decoration:none; }
.contact-meta a:hover{ color: var(--paper); }
.dot-sep{ opacity: .5; }

/* ---------- FOOTER ---------- */
footer{
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
footer .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-brand svg{ width: 20px; height: 13px; }
.footer-links{
  display:flex;
  gap: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-links a{ text-decoration:none; color: var(--ink-soft); }
.footer-links a:hover{ color: var(--ink); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
  .nav-links{ display:none; }
  .hero-grid{ grid-template-columns: 1fr; }
  .mark-stage{ order:-1; min-height: 220px; }
  .service-grid{ grid-template-columns: 1fr; }
  section{ padding: 64px 0; }
  .hero{ padding: 48px 0 60px; }
}
