:root {
  --ink: #0A0908;
  --carbon: #15110F;
  --iron: #2A2520;
  --iron-soft: #1F1B18;
  --bone: #EFE7D6;
  --bone-soft: rgba(239, 231, 214, 0.72);
  --bone-mute: rgba(239, 231, 214, 0.48);
  --stone: #837A6E;
  --crimson: #C8302E;
  --crimson-deep: #9F2421;
  --ember: #E5523F;
  --brass: #B58A3A;
  --brass-soft: #C9A05A;
  --hairline: rgba(239, 231, 214, 0.10);
  --hairline-strong: rgba(239, 231, 214, 0.18);

  --font-display: "Marcellus", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

a {
  color: var(--bone);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover { color: var(--ember); }

p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--bone);
}

h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.25;
}

h4 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass);
  margin: 0 0 18px;
}

.lede {
  max-width: 56ch;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--bone-soft);
  margin: 0;
}

.section-lede {
  margin: 18px 0 0;
  color: var(--bone-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* ----- Nav ----- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.wordmark:hover { color: var(--bone); }

.wordmark img {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--bone-soft);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--bone); }

.nav-links a.is-active {
  color: var(--bone);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--crimson);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--bone);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--crimson);
  transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}

.nav-cta:hover {
  background: var(--crimson-deep);
  border-color: var(--crimson-deep);
  color: var(--bone);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ----- Buttons ----- */

.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  background: var(--crimson);
  color: var(--bone);
  border-color: var(--crimson);
  box-shadow: 0 12px 32px -10px rgba(200, 48, 46, 0.6);
}

.btn-primary:hover {
  background: var(--crimson-deep);
  border-color: var(--crimson-deep);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -12px rgba(200, 48, 46, 0.55);
  color: var(--bone);
}

.btn-secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--hairline-strong);
}

.btn-secondary:hover {
  border-color: var(--bone);
  transform: translateY(-1px);
  color: var(--bone);
}

.btn-ghost {
  background: transparent;
  color: var(--bone-soft);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--bone);
  color: var(--bone);
}

/* ----- Hero ----- */

.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) clamp(20px, 5vw, 64px) clamp(80px, 12vw, 140px);
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(200, 48, 46, 0.16), transparent 38%),
    radial-gradient(circle at 8% 92%, rgba(181, 138, 58, 0.08), transparent 42%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 { max-width: 14ch; }

.hero-accent {
  color: var(--crimson);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-foot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 56px;
  padding: 9px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--bone-soft);
  background: rgba(21, 17, 15, 0.5);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--crimson);
  box-shadow: 0 0 0 6px rgba(200, 48, 46, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(200, 48, 46, 0.18); }
  50% { box-shadow: 0 0 0 10px rgba(200, 48, 46, 0.06); }
}

.hero-tight { padding-block: clamp(56px, 10vw, 100px); }

.hero-tight h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 18ch;
}

.lede {
  margin-top: 28px;
}

/* ----- Section ----- */

.section {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}

/* ----- Cards ----- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: var(--carbon);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--crimson);
  background: var(--iron-soft);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

.card-feature {
  background:
    radial-gradient(circle at 20% 0%, rgba(200, 48, 46, 0.18), transparent 60%),
    var(--iron-soft);
  border-color: var(--crimson-deep);
}

.card-feature:hover { border-color: var(--crimson); }

.card-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(239, 231, 214, 0.06);
  color: var(--bone-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}

.card-tag-accent {
  background: rgba(200, 48, 46, 0.16);
  color: var(--ember);
  border-color: rgba(200, 48, 46, 0.3);
}

.card p { color: var(--bone-soft); line-height: 1.6; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--bone-soft);
}

.card-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 12px;
  height: 1px;
  background: var(--crimson);
}

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

/* ----- Steps ----- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  display: grid;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--bone);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--crimson);
  letter-spacing: 0.08em;
}

.step h3 { font-size: 1.5rem; }

.step p { color: var(--bone-soft); line-height: 1.6; }

@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

/* ----- Industry grid ----- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.industry {
  padding: 28px 24px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  transition: background 180ms ease, color 180ms ease;
}

.industry:hover {
  background: var(--carbon);
  color: var(--ember);
}

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

/* ----- Service deep-dive ----- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  padding: clamp(56px, 8vw, 80px) 0;
  border-top: 1px solid var(--hairline);
}

.service-block:first-of-type { border-top: 0; padding-top: 0; }

.service-block h2 { font-size: clamp(2rem, 4vw, 3rem); }

.service-block .eyebrow { color: var(--crimson); }

.service-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 0;
}

.service-bullets li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.service-bullets li:last-child { border-bottom: 0; }

.service-bullets .marker {
  color: var(--crimson);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.service-bullets strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bone);
  font-weight: 500;
}

.service-bullets span { color: var(--bone-soft); font-size: 0.96rem; line-height: 1.55; }

@media (max-width: 920px) {
  .service-block { grid-template-columns: 1fr; gap: 24px; }
}

/* ----- About ----- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.about-body {
  display: grid;
  gap: 22px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--bone-soft);
}

.about-body strong { color: var(--bone); font-weight: 500; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--hairline);
}

.principle {
  padding: 24px;
  background: var(--carbon);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}

.principle h4 { color: var(--bone); margin-bottom: 8px; }

.principle p { color: var(--bone-soft); font-size: 0.96rem; line-height: 1.55; }

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .principles { grid-template-columns: 1fr; }
}

/* ----- Contact ----- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-card {
  padding: clamp(32px, 5vw, 48px);
  background:
    radial-gradient(circle at 0% 0%, rgba(200, 48, 46, 0.20), transparent 50%),
    var(--carbon);
  border: 1px solid var(--hairline);
  border-radius: 24px;
}

.contact-card h2 { margin-bottom: 16px; }

.contact-card p { color: var(--bone-soft); margin-bottom: 24px; line-height: 1.6; }

.contact-meta {
  display: grid;
  gap: 18px;
  padding: clamp(32px, 5vw, 48px);
  background: var(--carbon);
  border: 1px solid var(--hairline);
  border-radius: 24px;
}

.contact-meta h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 4px;
}

.contact-meta p, .contact-meta a { color: var(--bone-soft); line-height: 1.55; }

.contact-meta a:hover { color: var(--ember); }

.contact-row { padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }

.contact-row:last-child { padding-bottom: 0; border-bottom: 0; }

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

/* ----- CTA band ----- */

.cta-band {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--hairline);
}

.cta-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 64px);
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 48, 46, 0.28), transparent 60%),
    var(--carbon);
  border: 1px solid var(--hairline-strong);
  border-radius: 32px;
}

.cta-card h2 { margin-bottom: 16px; }

.cta-card p {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--bone-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* ----- Footer ----- */

.site-foot {
  background: var(--ink);
  color: var(--bone-soft);
  padding: 48px clamp(20px, 5vw, 64px) 32px;
  border-top: 1px solid var(--hairline);
}

.foot-row {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.foot-brand .wordmark-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--bone);
  display: block;
  margin-bottom: 10px;
}

.foot-brand p { font-size: 0.9rem; color: var(--bone-soft); line-height: 1.55; max-width: 32ch; }

.foot-col h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  color: var(--bone-soft);
  font-size: 0.93rem;
  padding: 4px 0;
}

.foot-col a:hover { color: var(--bone); }

.foot-fine {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--bone-mute);
}

@media (max-width: 820px) {
  .foot-row { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .foot-row { grid-template-columns: 1fr; }
}

/* ----- 404 ----- */

.notfound-shell {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 64px clamp(20px, 5vw, 64px);
  text-align: center;
}

.notfound-shell h1 { font-size: clamp(4rem, 12vw, 9rem); }

.notfound-shell p { color: var(--bone-soft); margin: 16px 0 28px; }

/* ----- Reduced motion ----- */

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